Support Questions
Find answers, ask questions, and share your expertise

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/ <==
/usr/hdp/ line 317: /usr/jdk64/jdk1.8.0_112/bin/java: Permission denied
/usr/hdp/ 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

@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.


@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/