Answers for "hdfs in hadoop how to run program on slaves"

2

hadoop slave node storage configuration

<!-- slave node storage configuration -->

<!-- /etc/hadoop - configuration directory -->
<!-- /etc/hadoop/hdfs-site.xml - configuration file for storage hdfs -->

<!-- Create a /dn1 directory -->


<configuration>

<property>
<name>dfs.data.dir</name>
<value>/dn1</value>
</property>

</configuration>



<!-- /etc/hadoop/core-site.xml - configuration file for ip and port -->

<configuration>

<property>
<name>fs.default.name</name>
<value>hdfs://IP_OF_MASTER:9001</value>
</property>

</configuration>

<!-- Run the below command to start to hadoop daemon -->
hadoop-daemon.sh start datanode

<!-- remove and re-create the "/dn" if unable to connect -->
Posted by: Guest on September-18-2020
0

how to build a hadoop cluster

export HADOOP_HOME=/home/hadoop/hadoop
export PATH=${PATH}:${HADOOP_HOME}/bin:${HADOOP_HOME}/sbin
Posted by: Guest on June-08-2020

Code answers related to "hdfs in hadoop how to run program on slaves"

Code answers related to "Javascript"

Browse Popular Code Answers by Language