Skip to content

Commit bd66b07

Browse files
committed
Add env variable for the hadoop-namenode with default value of 127.0.0.1
1 parent 7975b88 commit bd66b07

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ENV HADOOP_COMMON_HOME $HADOOP_INSTALL
1111
ENV HADOOP_HDFS_HOME $HADOOP_INSTALL
1212
ENV HADOOP_COMMON_LIB_NATIVE_DIR $HADOOP_INSTALL/lib/native
1313
ENV YARN_HOME $HADOOP_INSTALL
14+
ENV HADOOP_NAMENODE 127.0.0.1
1415

1516
# Installing HADOOP
1617
ADD http://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz /

env/local/core-site.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<configuration>
2020
<property>
2121
<name>fs.default.name</name>
22-
<value>hdfs://192.168.0.19:9000</value>
22+
<value>hdfs://$HADOOP_NAMENODE:9000</value>
2323
</property>
2424
</configuration>

0 commit comments

Comments
 (0)