diff --git a/run.sh b/run.sh index bbbb9e3..56c8468 100644 --- a/run.sh +++ b/run.sh @@ -1,9 +1,3 @@ #!/bin/bash -datadir=`echo $HDFS_CONF_dfs_datanode_data_dir | perl -pe 's#file://##'` -if [ ! -d $datadir ]; then - echo "Datanode data directory not found: $datadir" - exit 2 -fi - -$HADOOP_HOME/bin/hdfs --config $HADOOP_CONF_DIR datanode +$HADOOP_HOME/bin/yarn --config $HADOOP_CONF_DIR historyserver