728x90
localhost: ERROR: Cannot set priority of datanode process
Starting namenodes on [localhost]
Starting datanodes
localhost: ERROR: Cannot set priority of datanode process 854900
Starting secondary namenodes [server_name]
2023-11-12 13:52:05,508 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting resourcemanager
Starting nodemanagers
๋์ ๊ฒฝ์ฐ namenode namespace์ ๊ถํ์ด ๊ผฌ์ฌ ์์ด hadoop์ด ์ฐพ์ง ๋ชปํ๋ค. ๊ฐ์ ์ํฉ์ผ ๊ฒฝ์ฐ namenode๋ฅผ ์ด๊ธฐํ ํด์ค๋ค.
1) ๋ชจ๋ ํ๋ก ์ข ๋ฃ
stop-all.sh
2) hdfs-site.xml path ํ์ธ (vi $HADOOP_HOME/etc/hadoop/hdfs-site.xml, $HADOOP_HOME ํ๋ก ์ค์น directorypath)
<property>
<name>dfs.namenode.name.dir</name>
<value>file:///home/user/hadoop-3.3.5/dfs/name</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:///home/user/hadoop-3.3.5/dfs/data</value>
dfs ํ์ ํด๋์ ๋ ธ๋๋ช (data, name)์ด ํด๋น ํด๋์ ์ ์์นํ๋์ง ํ์ธ
3) namenode format
stop-dfs.sh # bashrc์ HADOOP_HOME๊ณผ ๊ธฐํ PATH ์ค์ ์์๋ง ๊ฐ๋ฅ
sudo bin/hdfs namenode -format
4) ํด๋ ๊ถํ 777 ๋ถ์ฌ
sudo chmod -R 777 /home/user/hadoop-3.3.5/dfs
5) ์ฌ์์
start-all.sh
WARNING: Attempting to start all Apache Hadoop daemons as --- in 10 seconds.
WARNING: This is not a recommended production deployment configuration.
WARNING: Use CTRL-C to abort.
Starting namenodes on [---]
Starting datanodes
Starting secondary namenodes [---]
Starting resourcemanager
Starting nodemanagers
๋ฐ์ํ
'๐ข๏ธ Database' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[airflow] airflow root ๊ถํ docker ์ ์ (0) | 2023.11.26 |
---|---|
[airflow] airflow-init-1 exited (0) | 2023.11.26 |
[WSL] ssh: connect to host localhost port 22: Connection refused (0) | 2023.10.29 |
[SQL]Window ํจ์ First_value/Last_value ํ์ฉํ๊ธฐ (0) | 2023.08.26 |
[SQL] LEFT, REPLACE, SUBSTRING (0) | 2023.08.21 |