Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Unable to start Name node – java.net.ConnectException: Connection refused

$
0
0

Hi

I am New to hadoop and trying to setup single node hadoop cluster on Ubuntu 12.04 using Ambari <span id=”i18n-121″>Version</span> 2.1.2

while starting the name node i am getting error “Call From ubuntu/127.0.1.1 to hostname.domainname:8020 failed on connection exception: java.net.ConnectException: Connection refused”

2015-11-28 21:20:43,546 – XmlConfig[‘core-site.xml’] {‘group’: ‘hadoop’, ‘conf_dir’: ‘/usr/hdp/current/hadoop-client/conf’, ‘mode’: 0644, ‘configuration_attributes’: {}, ‘owner’: ‘hdfs’, ‘configurations’: …}
2015-11-28 21:20:44,076 – Generating config: /usr/hdp/current/hadoop-client/conf/core-site.xml
2015-11-28 21:20:44,077 – File[‘/usr/hdp/current/hadoop-client/conf/core-site.xml’] {‘owner’: ‘hdfs’, ‘content’: InlineTemplate(…), ‘group’: ‘hadoop’, ‘mode’: 0644, ‘encoding’: ‘UTF-8’}
2015-11-28 21:20:44,974 – File[‘/usr/hdp/current/hadoop-client/conf/slaves’] {‘content’: Template(‘slaves.j2’), ‘owner’: ‘hdfs’}
2015-11-28 21:20:45,083 – Directory[‘/hadoop/hdfs/namenode’] {‘owner’: ‘hdfs’, ‘recursive’: True, ‘group’: ‘hadoop’, ‘mode’: 0755, ‘cd_access’: ‘a’}
2015-11-28 21:20:45,106 – Ranger admin not installed
/hadoop/hdfs/namenode/namenode-formatted/ exists. Namenode DFS already formatted
2015-11-28 21:20:45,106 – Directory[‘/hadoop/hdfs/namenode/namenode-formatted/’] {‘recursive’: True}
2015-11-28 21:20:45,154 – File[‘/etc/hadoop/conf/dfs.exclude’] {‘owner’: ‘hdfs’, ‘content’: Template(‘exclude_hosts_list.j2’), ‘group’: ‘hadoop’}
2015-11-28 21:20:45,241 – Directory[‘/var/run/hadoop’] {‘owner’: ‘hdfs’, ‘group’: ‘hadoop’, ‘mode’: 0755}
2015-11-28 21:20:45,241 – Changing owner for /var/run/hadoop from 0 to hdfs
2015-11-28 21:20:45,241 – Changing group for /var/run/hadoop from 0 to hadoop
2015-11-28 21:20:45,270 – Directory[‘/var/run/hadoop/hdfs’] {‘owner’: ‘hdfs’, ‘recursive’: True}
2015-11-28 21:20:45,284 – Directory[‘/var/log/hadoop/hdfs’] {‘owner’: ‘hdfs’, ‘recursive’: True}
2015-11-28 21:20:45,297 – File[‘/var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid’] {‘action’: [‘delete’], ‘not_if’: ‘ambari-sudo.sh  -H -E test -f /var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid && ambari-sudo.sh  -H -E pgrep -F /var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid’}
2015-11-28 21:20:45,505 – Execute[‘ambari-sudo.sh su hdfs -l -s /bin/bash -c ‘ulimit -c unlimited ;  /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh –config /usr/hdp/current/hadoop-client/conf start namenode”] {‘environment’: {‘HADOOP_LIBEXEC_DIR’: ‘/usr/hdp/current/hadoop-client/libexec’}, ‘not_if’: ‘ambari-sudo.sh  -H -E test -f /var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid && ambari-sudo.sh  -H -E pgrep -F /var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid’}
2015-11-28 21:20:53,004 – Must wait to leave safemode since High Availability is not enabled.
2015-11-28 21:20:53,005 – Checking the NameNode safemode status since may need to transition from ON to OFF.
2015-11-28 21:20:53,006 – Execute[‘hdfs dfsadmin -fs hdfs://hostname.domainname:8020 -safemode get | grep ‘Safe mode is OFF”] {‘logoutput’: True, ‘tries’: 180, ‘user’: ‘hdfs’, ‘try_sleep’: 10}
safemode: Call From ubuntu/127.0.1.1 to hostname.domainname:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
2015-11-28 21:22:49,423 – Retrying after 10 seconds. Reason: Execution of ‘hdfs dfsadmin -fs hdfs://hostname.domainname:8020 -safemode get | grep ‘Safe mode is OFF” returned 1. safemode: Call From ubuntu/127.0.1.1 to hostname.domainname:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>