Member since
01-05-2018
2
Posts
0
Kudos Received
0
Solutions
01-12-2018
06:44 PM
Hi, Sorry for late response, held up in other work and will start the tutorial again later. However, "Please let us know if you are trying to start ambari server with Non-Root user account?" - No, I am using root to start and also to check the status. The error mentioned above is on issue of status or start command. [root@sandbox-hdf ~]# ambari-server status In fact I am unable to find the directory "/var/run/ambari-server". I am using the port mentioned while I start the VM. I believe the start up page is displayed correctly so no issue there. But I will try to check further later. Thanks.
... View more
01-05-2018
06:55 PM
I am following the tutorial: https://hortonworks.com/tutorial/realtime-event-processing-in-hadoop-with-nifi-kafka-and-storm/section/2/ Based on initial requirements, I have download the sandbox: HDF_3.0.2.0_vmware_28_11_2017.ova When I started the VM, I got the host and IP for Welcome screen and SSH terminal (Untitled.png). I registered the host in my windows hosts file. I am able to open the SSH terminal (on Gitbash and chrome both) and change the root password successfully. I am also able to go to the Welcome screen. When I click on Dashboard, it opens 2 tabs. 1 tab is for tutorial which is working fine. Another tab is for Ambari dashboard, which cannot be opened. It is giving me "refuse to connect" error. When I go to SSH terminal and try to check status or start ambari service I receive following error. [root@sandbox-hdf ~]# ambari-server status
Using python /usr/bin/python
Ambari-server status
Traceback (most recent call last):
File "/usr/sbin/ambari-server.py", line 36, in <module>
from ambari_server.dbConfiguration import DATABASE_NAMES, LINUX_DBMS_KEYS_LIST
File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 28, in <module>
from ambari_server.serverConfiguration import decrypt_password_for_alias, get_ambari_properties, get_is_secure, \
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 593, in <module>
configDefaults = ServerConfigDefaults()
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 503, in __init__
super(ServerConfigDefaultsLinux, self).__init__()
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 387, in __init__
self.check_if_directories_writable([self.OUT_DIR, self.PID_DIR])
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 439, in check_if_directories_writable
raise FatalException(-1, "Unable to access {0} directory. Confirm the directory is created and is writable by Ambari Server user account '{1}'".format(directory, getpass.getuser()))
ambari_commons.exceptions.FatalException: "Fatal exception: Unable to access directory. Confirm the directory is created and is writable by Ambari Server user account 'root', exit code -1"
[root@sandbox-hdf ~]# ambari-server start
Using python /usr/bin/python
Starting ambari-server
Traceback (most recent call last):
File "/usr/sbin/ambari-server.py", line 36, in <module>
from ambari_server.dbConfiguration import DATABASE_NAMES, LINUX_DBMS_KEYS_LIST
File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 28, in <module>
from ambari_server.serverConfiguration import decrypt_password_for_alias, get_ambari_properties, get_is_secure, \
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 593, in <module>
configDefaults = ServerConfigDefaults()
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 503, in __init__
super(ServerConfigDefaultsLinux, self).__init__()
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 387, in __init__
self.check_if_directories_writable([self.OUT_DIR, self.PID_DIR])
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 439, in check_if_directories_writable
raise FatalException(-1, "Unable to access {0} directory. Confirm the directory is created and is writable by Ambari Server user account '{1}'".format(directory, getpass.getuser()))
ambari_commons.exceptions.FatalException: "Fatal exception: Unable to access directory. Confirm the directory is created and is writable by Ambari Server user account 'root', exit code -1"
[root@sandbox-hdf ~]# - Why root user is having permission issues on machine? - What is required to start and run ambari service and its dashboard? Anything I am missing?
... View more
Labels:
- Labels:
-
Cloudera DataFlow (CDF)