Failed to connect to Hadoop or stuck processing
If the following error occurs:
Java. io. IOException: cocould not locate executable null \ bin \ winutils.exe in the Hadoop binaries.
At org. apache. hadoop. util. Shell. getQualifiedBinPath (Shell. java: 318)
At org. apache. hadoop. util. Shell. getWinUtilsPath (shells. java: 333)
At org. apache. hadoop. util. Shell. (Shell. java: 326)
At org. apache. hadoop. util. StringUtils. (StringUtils. java: 76)
At org. apache. hadoop. security. Groups. parseStaticMapping (Groups. java: 93)
At org. apache. hadoop. security. Groups. (Groups. java: 77)
At org. apache. hadoop. security. Groups. getUserToGroupsMappingService (Groups. java: 240)
At org. apache. hadoop. security. UserGroupInformation. initialize (UserGroupInformation. java: 255)
At org. apache. hadoop. security. UserGroupInformation. ensureInitialized (UserGroupInformation. java: 232)
At org. apache. hadoop. security. UserGroupInformation. loginUserFromSubject (UserGroupInformation. java: 718)
At org. apache. hadoop. security. UserGroupInformation. getLoginUser (UserGroupInformation. java: 703)
At org. apache. hadoop. security. UserGroupInformation. getCurrentUser (UserGroupInformation. java: 605)
At org. apache. hadoop. hbase. security. User $ SecureHadoopUser. (User. java: 262)
At org. apache. hadoop. hbase. security. User $ SecureHadoopUser. (User. java: 258)
At org. apache. hadoop. hbase. security. User. getCurrent (User. java: 160)
At org. apache. hadoop. hbase. security. UserProvider. getCurrent (UserProvider. java: 89)
At org. apache. hadoop. hbase. client. HConnectionManager. createConnection (HConnectionManager. java: 330)
At com. tracker. common. db. simplehbase. connection. HbaseUtils. createHConnection (HbaseUtils. java: 33)
At com. tracker. common. db. simplehbase. connection. HConnectionPool. initHConnectionPool (HConnectionPool. java: 54)
At com. tracker. common. db. simplehbase. connection. HConnectionPool. initHConnectionPool (HConnectionPool. java: 38)
At com. tracker. data. api. handler. TestWebStatsService. main (TestWebStatsService. java: 44)
You need to add the environment variable of HADOOP_HOME as follows:
If the connection to Hadoop is stuck, configure the C: \ Windows \ System32 \ drivers \ etc \ hosts file and add the proxy
10.100.2.92 dev-hadoop1
10.100.2.93 dev-hadoop2
10.100.2.94 dev-hadoop3
Then you can smoothly connect to Hadoop.