Member since
09-20-2018
26
Posts
1
Kudos Received
0
Solutions
02-12-2019
11:00 AM
Thanks @Jay Kumar SenSharma That worked for me!
... View more
02-11-2019
04:27 AM
Hi @Geoffrey Shelton Okot I am getting the above error while starting the namenode from Ambari UI . When I click 'Start All' the services does not start because namenode is not getting started due to the above error.
... View more
02-08-2019
02:58 PM
I am getting error while installing namenode where it says "-safemode get | grep 'Safe mode is OFF''" Ambari:2.7.0.0 HDP:3.0 I got the below error and I ran : >hdfs dfsadmin -safemode leave
>Output:safemode: Call From devaz01/10.161.137.4 to devaz01:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
then I ran>chmod -R 644 /var/log/hadoop/hdfs
Since then I am getting: Execution of 'ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ; /usr/hdp/3.0.1.0-187/hadoop/bin/hdfs --config /usr/hdp/3.0.1.0-187/hadoop/conf --daemon start namenode'' returned 1. ERROR: Unable to write in /var/log/hadoop/hdfs. Aborting.
019-02-08 03:31:21,394 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://machine:8020 -safemode get | grep 'Safe mode is OFF'' returned 1. safemode: Call From machine/xx.xxx.xxx.x to machine:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
safemode: Call From machine/10.161.137.4 to machine:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
... View more
Labels:
- Labels:
-
Apache Hadoop
02-07-2019
03:12 PM
1 Kudo
Hi @Geoffrey Shelton Okot I am getting this error even after running the above commands on mysql. stderr:
Traceback (most recent call last):
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of 'ambari-python-wrap /usr/hdp/current/ranger-kms/dba_script.py -q' returned 1. 2019-02-07 12:52:26,435 [I] Running DBA setup script. QuiteMode:True
2019-02-07 12:52:26,435 [I] Using Java:/usr/jdk64/jdk1.8.0_112/bin/java
2019-02-07 12:52:26,435 [I] DB FLAVOR:MYSQL
2019-02-07 12:52:26,435 [I] DB Host:machine
2019-02-07 12:52:26,435 [I] ---------- Verifing DB root password ----------
2019-02-07 12:52:26,436 [I] DBA root user password validated
2019-02-07 12:52:26,436 [I] ---------- Verifing Ranger KMS db user password ----------
2019-02-07 12:52:26,436 [I] KMS user password validated
2019-02-07 12:52:26,436 [I] ---------- Creating Ranger KMS db user ----------
2019-02-07 12:52:26,436 [JISQL] /usr/jdk64/jdk1.8.0_112/bin/java -cp /usr/hdp/current/ranger-kms/ews/webapp/lib/mysql-connector-java.jar:/usr/hdp/current/ranger-kms/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://machine/mysql -u rangerkms -p '********' -noheader -trim -c \; -query "SELECT version();"
SQLException : SQL state: 28000 java.sql.SQLException: Access denied for user 'rangerkms'@'machine' (using password: YES) ErrorCode: 1045
2019-02-07 12:52:27,212 [E] Can't establish db connection.. Exiting..
... View more
02-07-2019
01:34 PM
I deleted the conf file under /usr/hdp/3.0.1.0-187/hadoop/ and reinstalled services using Ambari UI and it worked.
... View more
02-06-2019
02:23 PM
I have reinstalled and ran yum clean all, below is the output I am getting #hdp-select versions Traceback (most recent call last):
File "/bin/hdp-select", line 456, in <module>
printVersions()
File "/bin/hdp-select", line 295, in printVersions
for f in os.listdir(root):
OSError: [Errno 2] No such file or directory: '/usr/hdp' # hdp-select | grep hadoop Traceback (most recent call last):
File "/bin/hdp-select", line 456, in <module>
printVersions()
File "/bin/hdp-select", line 295, in printVersions
for f in os.listdir(root):
OSError: [Errno 2] No such file or directory: '/usr/hdp'
[root@devaz01 ~]# hdp-select | grep hadoop
hadoop-client - None
hadoop-hdfs-client - None
hadoop-hdfs-datanode - None
hadoop-hdfs-journalnode - None
hadoop-hdfs-namenode - None
hadoop-hdfs-nfs3 - None
hadoop-hdfs-portmap - None
hadoop-hdfs-secondarynamenode - None
hadoop-hdfs-zkfc - None
hadoop-httpfs - None
hadoop-mapreduce-client - None
hadoop-mapreduce-historyserver - None
hadoop-yarn-client - None
hadoop-yarn-nodemanager - None
hadoop-yarn-registrydns - None
hadoop-yarn-resourcemanager - None
hadoop-yarn-timelinereader - None
hadoop-yarn-timelineserver - None #ls -lart /usr/hdp ls: cannot access /usr/hdp: No such file or directory #ls -lart /usr/hdp/current/ ls: cannot access /usr/hdp/current/: No such file or directory
... View more
02-06-2019
12:38 PM
@Jay Kumar SenSharma While checking /usr/hdp/current folder there are no files available. Can you provide me a way to install HDP correctly to get the files and resolve the error. I tried scp'ing it from one of the node out of 5 which is working correctly but they are stored as directories.
... View more
02-06-2019
10:01 AM
run_as_user = root nxautom+ 6789 1 0 Feb02 ? 00:01:09 python /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/main.py /var/opt/microsoft/omsagent/state/automationworker/oms.conf rworkspace:2cdafa97-1d38-4ad7-afc8-68a74145a77c 1.6.3.0
root 97419 97415 9 08:48 pts/0 00:02:02 /usr/bin/python /usr/lib/ambari-agent/lib/ambari_agent/main.py start
root 109563 96746 0 09:11 pts/0 00:00:00 grep --color=auto main.py This is the output I am getting after running the above commands.
... View more
02-06-2019
08:37 AM
Hi @Jay Kumar SenSharma, I am running the ambari-agent command being the root user only.
... View more
02-06-2019
07:18 AM
Hi @Akhil S Naik I am getting 'permission denied' error on two hosts and on other hosts it is 'command not found'.
... View more