异常:
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
2019-12-16 14:00:50.919 WARN 19316 --- [ntainer#1-0-C-1] org.apache.hadoop.util.NativeCodeLoader : Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2019-12-16 14:00:51.309 ERROR 19316 --- [ntainer#1-0-C-1] org.apache.hadoop.util.Shell : Failed to locate the winutils binary in the hadoop binary path
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:355) [hadoop-common-2.5.1.jar:na]
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:370) [hadoop-common-2.5.1.jar:na]
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:363) [hadoop-common-2.5.1.jar:na]
at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:78) [hadoop-common-2.5.1.jar:na]
at org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:93) [hadoop-common-2.5.1.jar:na]
at org.apache.hadoop.security.Groups.<init>(Groups.java:77) [hadoop-common-2.5.1.jar:na]
at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:240) [hadoop-common-2.5.1.jar:na]
at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:225) [hadoop-common-2.5.1.jar:na]
at org.apache.hadoop.hbase.security.UserProvider.<clinit>(UserProvider.java:56) [hbase-common-1.2.6.jar:1.2.6]
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:214) [hbase-client-1.2.6.jar:1.2.6]
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119) [hbase-client-1.2.6.jar:1.2.6]
at cn.hba.service.impl.HBaseServiceImpl.createTable(HBaseServiceImpl.java:37) [classes/:na]
at cn.hba.syslog.consumer.SyslogConsumer.attack(SyslogConsumer.java:73) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191]
at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171) [spring-messaging-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120) [spring-messaging-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:283) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:79) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:50) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1263) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1256) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1217) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1198) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1118) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:933) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:749) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:698) [spring-kafka-2.2.6.RELEASE.jar:2.2.6.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_191]
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_191]
at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]
2019-12-16 14:00:53.148 INFO 19316 --- [ntainer#1-0-C-1] o.a.h.h.zookeeper.RecoverableZooKeeper : Process identifier=hconnection-0x3d8b9d65 connecting to ZooKeeper ensemble=10.0.1.72:2181,10.0.1.73:2181,10.0.1.74:2181,10.0.1.75:2181
解决
下载 winutils.exe,配置HADOOP_HOME的环境变量,重启即可。