1 Star 0 Fork 72

Easton/hadoop-docker-nn

forked from supermy/hadoop-docker-nn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pre-start-hadoop.sh 612 Bytes
一键复制 编辑 原始数据 按行查看 历史
supermy 提交于 2015-03-30 21:54 . hadoop&hbase集群;
# gen core-site.xml
sed s/HOSTNAME/$(ip addr show eth0 | grep -Po 'inet \K[\d.]+')/ /etc/hadoop/conf/core-site.xml.template > /etc/hadoop/conf/core-site.xml
cat /etc/hadoop/conf/core-site.xml
# log dir
mkdir -p /home/jamesmo/shared_with_docker_container/hadoop-log-dir
chown -R hdfs:hdfs /home/jamesmo/shared_with_docker_container/hadoop-log-dir
# create namenode
mkdir -p /home/jamesmo/shared_with_docker_container/cdh4/nn
chown -R hdfs:hdfs /home/jamesmo/shared_with_docker_container/cdh4/nn
chmod 700 /home/jamesmo/shared_with_docker_container/cdh4/nn
# format namenode
sudo -u hdfs hdfs namenode -format
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/eastonii/hadoop-docker-nn.git
[email protected]:eastonii/hadoop-docker-nn.git
eastonii
hadoop-docker-nn
hadoop-docker-nn
master

搜索帮助