-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·40 lines (28 loc) · 1.24 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
hdfs_dir="/tmp_local/hadoop.jp420564/hdfsdata"
cluster_dir="/tmp_local/hadoop.jp420564/cluster"
export JAVA_HOME=$cluster_dir/java-se-8u41-ri
export HADOOP_INSTALL=$cluster_dir/hadoop-2.7.7
export HADOOP_PREFIX=$HADOOP_INSTALL
JAVA_HOME_=/tmp_local/hadoop.jp420564/cluster/java-se-8u41-ri
HADOOP_INSTALL_=/tmp_local/hadoop.jp420564/cluster/hadoop-2.7.7
export PATH=$JAVA_HOME_/bin:$HADOOP_INSTALL_/bin:$HADOOP_INSTALL_/sbin:$PATH
echo
echo "***************************************************************************"
echo start-dfs.sh
echo "***************************************************************************"
start-dfs.sh
echo
echo "***************************************************************************"
echo start-yarn.sh
echo "***************************************************************************"
start-yarn.sh
echo
echo "***************************************************************************"
echo sleep 30
echo "***************************************************************************"
sleep 30
echo
echo "***************************************************************************"
echo hdfs dfsadmin -report
echo "***************************************************************************"
hdfs dfsadmin -report