Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Data node not able to start

Highlighted

Data node not able to start

New Contributor
data node log file contains below inforation

Execute['find /var/log/hadoop/hdfs -maxdepth 1 -type f -name '*' -exec echo '==> {} <==' \; -exec tail -n 40 {} \;'] {'logoutput': True, 'ignore_failures': True, 'user': 'hdfs'}
==> /var/log/hadoop/hdfs/hadoop-hdfs-datanode-hdpdn3.xxxxx.com.out.1 <==
/usr/hdp/2.6.2.0-205//hadoop-hdfs/bin/hdfs.distro: line 317: /usr/jdk64/jdk1.8.0_112/bin/java: Permission denied
/usr/hdp/2.6.2.0-205//hadoop-hdfs/bin/hdfs.distro: line 317: exec: /usr/jdk64/jdk1.8.0_112/bin/java: cannot execute: Permission denied
ulimit -a for user hdfs
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 3858
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 128000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 65536
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
2 REPLIES 2
Highlighted

Re: Data node not able to start

@Rayudu c

The error seems to be related to the permission denied with respected to 'java' execution '/usr/jdk64/jdk1.8.0_112/bin/java: cannot execute: Permission denied'

Try providing the execution permission to the file '/usr/jdk64/jdk1.8.0_112/bin/java' for 'hdfs' user and run.

Highlighted

Re: Data node not able to start

Mentor

@Rayudu c

There are 2 things I see the permission should be

# chmod  755  /usr/jdk64/jdk1.8.0_112/bin/java

Secondly, your path seems to have an issue between the 2.6.x.x.x and hadoop there is a double // ?

# /usr/hdp/2.6.2.0-205//hadoop-hdfs/bin/hdfs.distro

Revert

Don't have an account?
Coming from Hortonworks? Activate your account here