зеркало из https://github.com/Azure/aztk.git
fix(hdfs): using wrong conditions (#515)
This commit is contained in:
Родитель
5579d95b41
Коммит
a00dbb7d6c
|
@ -59,7 +59,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>
|
|||
</configuration>' > $HADOOP_HOME/etc/hadoop/hdfs-site.xml
|
||||
|
||||
# run HDFS
|
||||
if [ "$AZTK_IS_MASTER" -eq "true" ]; then
|
||||
if [ "$AZTK_IS_MASTER" = "true" ]; then
|
||||
echo 'starting namenode and datanode'
|
||||
hdfs namenode -format
|
||||
$HADOOP_HOME/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR --script hdfs start namenode
|
||||
|
|
|
@ -59,7 +59,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>
|
|||
</configuration>' > $HADOOP_HOME/etc/hadoop/hdfs-site.xml
|
||||
|
||||
# run HDFS
|
||||
if [ "$AZTK_IS_MASTER" -eq "true" ]; then
|
||||
if [ "$AZTK_IS_MASTER" = "true" ]; then
|
||||
echo 'starting namenode and datanode'
|
||||
hdfs namenode -format
|
||||
$HADOOP_HOME/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR --script hdfs start namenode
|
||||
|
|
Загрузка…
Ссылка в новой задаче