pio build 正常
pio train 报错,错哪儿了?试了几个模板都是这个错。
jdk配置了
Exception in thread "main" java.lang.NoSuchMethodError: org.json4s.ParserUtil$.quote(Ljava/lang/String;)Ljava/lang/String;
at org.json4s.native.JsonMethods$$anonfun$2.apply(JsonMethods.scala:42)
at org.json4s.native.JsonMethods$$anonfun$2.apply(JsonMethods.scala:42)
at scala.collection.immutable.List.map(List.scala:284)
at org.json4s.native.JsonMethods$class.render(JsonMethods.scala:42)
at org.json4s.native.JsonMethods$.render(JsonMethods.scala:62)
at org.apache.predictionio.workflow.WorkflowUtils$$anonfun$getParamsFromJsonByFieldAndClass$2$$anonfun$2.apply(WorkflowUtils.scala:177)
at org.apache.predictionio.workflow.WorkflowUtils$$anonfun$getParamsFromJsonByFieldAndClass$2$$anonfun$2.apply(WorkflowUtils.scala:168)
at scala.Option.map(Option.scala:146)
at org.apache.predictionio.workflow.WorkflowUtils$$anonfun$getParamsFromJsonByFieldAndClass$2.apply(WorkflowUtils.scala:168)
at org.apache.predictionio.workflow.WorkflowUtils$$anonfun$getParamsFromJsonByFieldAndClass$2.apply(WorkflowUtils.scala:159)
at scala.Option.map(Option.scala:146)
at org.apache.predictionio.workflow.WorkflowUtils$.getParamsFromJsonByFieldAndClass(WorkflowUtils.scala:159)
at org.apache.predictionio.controller.Engine.jValueToEngineParams(Engine.scala:363)
at org.apache.predictionio.workflow.CreateWorkflow$.main(CreateWorkflow.scala:222)
at org.apache.predictionio.workflow.CreateWorkflow.main(CreateWorkflow.scala)
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.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:849)
at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:167)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:195)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:924)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:933)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
【spark的版本错了!!】
更换了一个好了。
spark-2.4.0-bin-hadoop2.7
替换为:
spark-2.1.1-bin-hadoop2.6
坑了一下午。。。。哭。。。。。
原来配置好了一个,结果机器无理由ssh登录不上去了。
新的重新部署一遍,在这个坑里栽了好久。。。