/conf/hadoop-env.sh: line 1: #: command not found

438 views
Skip to first unread message

Srinivasa Rao

unread,
May 27, 2014, 7:38:34 PM5/27/14
to hadoop-learner-tutori...@googlegroups.com
I am getting error "/conf/hadoop-env.sh: line 1: #: command not found " while starting the hadoop. see the output. 

Can you please let me know why it is giving the command not found. but it seem that is running fine.

srini@srini-VirtualBox:~/hadoop/hadoop-1.2.1$ bin/start-all.sh
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
starting namenode, logging to /home/srini/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-srini-namenode-srini-VirtualBox.out
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: starting datanode, logging to /home/srini/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-srini-datanode-srini-VirtualBox.out
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: starting secondarynamenode, logging to /home/srini/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-srini-secondarynamenode-srini-VirtualBox.out
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
starting jobtracker, logging to /home/srini/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-srini-jobtracker-srini-VirtualBox.out
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
localhost: starting tasktracker, logging to /home/srini/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-srini-tasktracker-srini-VirtualBox.out
localhost: /home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
srini@srini-VirtualBox:~/hadoop/hadoop-1.2.1$ 


The log file output:

/home/srini/hadoop/hadoop-1.2.1/libexec/../conf/hadoop-env.sh: line 1: #: command not found
ulimit -a for user srini
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 31459
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 31459
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Srinivasa Rao

unread,
May 28, 2014, 7:59:50 PM5/28/14
to hadoop-learner-tutori...@googlegroups.com
The problem is resolved.

Nitesh Jain

unread,
May 28, 2014, 8:04:03 PM5/28/14
to hadoop-learner-tutori...@googlegroups.com
Wow great! What was the issue?

Srinivasa Rao

unread,
May 29, 2014, 10:46:58 AM5/29/14
to hadoop-learner-tutori...@googlegroups.com
I dont know what is problem but I think it might have some space in the /hadoop-env.sh file. 
I just deleted the JAVA_HOME line and added again. It is working fine. 

Thanks your help.

-Srini
Reply all
Reply to author
Forward
0 new messages