0

I am configuring Hadoop 3.1.1 on mac. However, once I complete all the steps I got the Permission denied on starting namenode, datanode and secondary namenode.

Also,

(unable to load native-hadoop library for your plateform.....using builtin-java classes where applicable)

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Hatim TM
  • 21
  • 3
  • From which user you're trying to start all these services? – Abhinav Oct 04 '18 at 22:27
  • You can ignore this "unable to load" **warning**, or you can search elsewhere for solutions to it, but no file permissions are needed to run Hadoop by default, so what exactly did you configure it with? It sounds like you are not running a SSH server on your Mac or didn't setup Passwordless SSH correctly. – OneCricketeer Oct 04 '18 at 23:02
  • @Abhinav i login in my mac as Admin and I am trying to run single node. – Hatim TM Oct 05 '18 at 07:11
  • @cricket_007 Java already installed, ssh localhost shows login and no 22 ports issue, password ssh once asked I run it without password, I configured 3 files mapred, hdfs then I formated hdfs namenode – Hatim TM Oct 05 '18 at 07:15
  • @Abhinav thanks and I think the steps to setup hadoop 3.1.1 not same like hadoop 2.6.0 (which available around the net ) – Hatim TM Oct 05 '18 at 07:19
  • @cricket_007 thanks and I think the steps to setup hadoop 3.1.1 not same like hadoop 2.6.0 (which available around the net ) – Hatim TM Oct 05 '18 at 07:19
  • Thanks in advance for any support to solve the issue – Hatim TM Oct 05 '18 at 10:54
  • Hadoop 3.x changed all of the startup scripts internally, but the process is still mostly the same... And you should start at the official Apache site for the version of Hadoop you are actually using. Besides that, I used Homebrew installed Hadoop a few weeks ago, and it worked fine, but I have root permissions on my Mac – OneCricketeer Oct 05 '18 at 13:49
  • What i am doing now is just get some of the settings from one stie then others from other site ...... confused , so please Is there any specific site for hadoop 3.1.1 to setup on mac? – Hatim TM Oct 05 '18 at 13:58
  • I have successfully installed Hadoop 3.1 on my Windows. But for Mac it looks like this site is a bit helpful https://macmetric.com/how-to-install-hadoop-on-mac/ – Abhinav Oct 05 '18 at 23:24

1 Answers1

0
  1. check your hostname of mac, /etc/hosts and hadoop/etc/hadoop/workers
  2. you can find problems in hadoop/logs/hadoop~~datanode~~.log
张文迪
  • 1
  • 1