错误记录 HDFS

错误记录

一、
java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: hdfs://10.42.149.64:9000

at java.net.URI.create(URI.java:852)
at HDFSDemo.put(HDFSDemo.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: hdfs://10.42.149.64:9000
at java.net.URIParser.fail(URI.java:2848)atjava.net.URIParser.fail(URI.java:2848) at java.net.URIParser.fail(URI.java:2848)atjava.net.URIParser.checkChars(URI.java:3021)
at java.net.URIParser.checkChar(URI.java:3031)atjava.net.URIParser.checkChar(URI.java:3031) at java.net.URIParser.checkChar(URI.java:3031)atjava.net.URIParser.parse(URI.java:3047)
at java.net.URI.(URI.java:588)
at java.net.URI.create(URI.java:850)
… 23 more

原因:URL地址里不小心敲了个空格。。
错误记录 HDFS

二、使用HDFSRxplorer上传时报错:不能识别该主机名称

解决方法:配置host文件:ip地址 主机名称

上一篇:CodeGo.net>如何在代码中找到点和抛物线之间的距离


下一篇:【DB笔试面试590】在Oracle中,什么是反连接(Anti Join)?