« first day (30 days earlier)    last day (14 days later) » 

5:52 AM
hi
are you there?
 
 
6 hours later…
11:47 AM
Sorry bro got stuck with work
Please dont mind
 
 
1 hour later…
12:54 PM
no problem
 
Have a query with hadoop administration
?
Could u help me out with that?
I ll post the query
Get into start-all.sh
U would find the below given script
if [ -f "${HADOOP_HDFS_HOME}"/sbin/start-dfs.sh ]; then
"${HADOOP_HDFS_HOME}"/sbin/start-dfs.sh --config $HADOOP_CONF_DIR
fi
It clearly states that it could execute start-dfs.sh script if u have HADOOP_HDFS_HOME variable in ur bashrc
Is that correct brother?
Correct me if m wrong?
I dont have HADOOP_HDFS_HOME variable pointing to my hadoop location in my .bashrc
that is
export HADOOP_HDFS_HOME = /usr/local/hadoop
Inspite of that it is executing the script
SO where does the complier take the location of hadoop from for this script to run?
I could find a complete dependency on the variable ${HADOOP_HDFS_HOME}
because when i tried commenting that query
None of the hdfs deamons started
 
1:09 PM
export HADOOP_HOME=/dfs/hadoop
 
I dont have that location in my .bashrc
Inspite of that it is able to run the script
 
export PATH=${PATH}:${HADOOP_HOME}/bin:${HADOOP_HOME}/sbin
where did you installed hadoop in your system'
 
/usr/local
 
export HADOOP_HOME=/usr/local/hadoop
export PATH=${PATH}:${HADOOP_HOME}/bin:${HADOOP_HOME}/sbin
add these two lines in your .bashrc file
 
Okay
 
1:12 PM
finally
compile the file
 
I got that part
I have a doubt
 
source ~/.bashrc
 
What does the start-all.sh script demand?
it demands
 
yes tell me
 
{HADOOP_HDFS_HOME}/sbin/start-dfs.sh
 
1:13 PM
it will start namenode, datanode, etc
 
Let me complete
 
start-all.sh script demands HADOOP_HDFS_HOME/sbin/start-dfs.sh
Is that correct?
Will go step by step
Is that correct?
 
Okay cool
I have HADOOP_HOME=/usr/local/hadoop
in my .bashrc
I dont have the variable HADOOP_HDFS_HOME in bashrc
that is HADOOP_HDFS_HOME=/usr/local/hadoop
 
1:15 PM
yes
export HADOOP_HDFS_HOME=/usr/local/hadoop
 
Yup
 
add like this in your .bashrc file
at the end
 
Brother
 
Can i execute start-all.sh script without export HADOOP_HDFS_HOME=/usr/local/hadoop
in .bashrc
?
 
1:18 PM
yes you can do like
 
How
?
 
sudo ./usr/local/hadoop/sbin/start-dfs.sh
 
U didnt get my question
I know how to execute the script
Okay
Let me explain u
if [ -f "${HADOOP_HDFS_HOME}"/sbin/start-dfs.sh ]; then
"${HADOOP_HDFS_HOME}"/sbin/start-dfs.sh --config $HADOOP_CONF_DIR
fi
 
can you call to this number 9655463200
 

« first day (30 days earlier)    last day (14 days later) »