Docker Container Build and Run setup with foundations for adding docker integration tests. Docker images built with Hadoop 2.8.4 Hive 2.3.3 and Spark 2.3.1 and published to docker-hub
Look at quickstart document for how to setup docker and run demo
This commit is contained in:
committed by
vinoth chandar
parent
9710b5a3a6
commit
f3418e4718
19
docker/hoodie/hadoop/namenode/run_nn.sh
Normal file
19
docker/hoodie/hadoop/namenode/run_nn.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
namedir=`echo $HDFS_CONF_dfs_namenode_name_dir | perl -pe 's#file://##'`
|
||||
if [ ! -d $namedir ]; then
|
||||
echo "Namenode name directory not found: $namedir"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if [ -z "$CLUSTER_NAME" ]; then
|
||||
echo "Cluster name not specified"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if [ "`ls -A $namedir`" == "" ]; then
|
||||
echo "Formatting namenode name directory: $namedir"
|
||||
$HADOOP_PREFIX/bin/hdfs --config $HADOOP_CONF_DIR namenode -format $CLUSTER_NAME
|
||||
fi
|
||||
|
||||
$HADOOP_PREFIX/bin/hdfs --config $HADOOP_CONF_DIR namenode
|
||||
Reference in New Issue
Block a user