0

I had a Hadoop on my machine running but I was running into some compiler issues, so I deleted it and started fresh.

I was following this setup: https://www.guru99.com/how-to-install-hadoop.html

When I run $HADOOP_HOME/bin/hdfs namenode -format Terminal doesn't return any thing.

Thanks in advance.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Niyya Té
  • 71
  • 1
  • 1
  • 7
  • Note: That link has a few steps not necessary as of Hadoop 2.x, and definitely not Hadoop3, but why are you expecting the format command to have any output? The shown image seems to show `start-dfs` output, not the format output – OneCricketeer Oct 10 '18 at 23:24
  • I'm getting no outputs for my Hadoop specific commands. Even hadoop version gives me no output. I should be receiving some confirmation or starting and shutdown message. – Niyya Té Oct 10 '18 at 23:32
  • There might be a `log4j.properties` file missing in your Hadoop download folder – OneCricketeer Oct 10 '18 at 23:34
  • i have the file in `usr/local/Cellar/hadoop/3.1.1/libexec/hadoop/` i downloaded using homebrew – Niyya Té Oct 10 '18 at 23:38
  • Hmm. I tried namenode format a few weeks ago from Homebrew on 3.1.1 and it worked fine for me. I can't remember if there was output or not, but starting the services, it did log to the console – OneCricketeer Oct 10 '18 at 23:46
  • It was on this question https://stackoverflow.com/a/52531871/2308683 – OneCricketeer Oct 10 '18 at 23:47
  • my console only shows that I opened terminal. But no service staring. How did you do you download and setup? – Niyya Té Oct 10 '18 at 23:48
  • `brew install hadoop`. I don't remember changing anything other than some XML files and the `hadoop-env.sh` file for Java settings – OneCricketeer Oct 10 '18 at 23:49

3 Answers3

0

I had the same issue and fix it by following

Change to etc file for adjusting the files hadoop-env , core-site, mapred, yarn

Change to sbin to do format and lunch hds services

Hatim TM
  • 21
  • 3
0

run with sudo will get you result for example

sudo hdfs namenode -format
ikel
  • 1,790
  • 6
  • 31
  • 61
-1

You need to make sure that you already adjust the files hadoop-env , core-site, mapred, yarn then processed to namenode format

Hatim TM
  • 21
  • 3