- data = RandomRDDs.normalVectorRDD(sc, 100000, 10, seed=2)
- def tologisticregressiondata(x):
- return LabeledPoint(rd.randint(0,1), x)
- dataforlogisticregression = data.map(tologisticregressiondata)
- cdata = dataforlogisticregression.randomSplit([0.8, 0.2])
- ctrain = cdata[0]
- ctest = cdata[1]
- cmodel = LogisticRegressionWithLBFGS.train(ctrain)
18/12/28 13:57:29 WARN HiveConf: HiveConf of name hive.server2.enable.impersonation does not exist
18/12/28 13:57:29 WARN metastore: Failed to connect to the MetaStore Server...
18/12/28 13:57:30 WARN metastore: Failed to connect to the MetaStore Server...
18/12/28 13:57:31 WARN metastore: Failed to connect to the MetaStore Server...
18/12/28 13:57:32 WARN Hive: Failed to access metastore. This class should not accessed in runtime.
org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate o rg.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
请问为什么会这样呢,其他方法,比如线性回归,SVM,随机森林等等都没有问题,只有logistic回归会报这个错误



雷达卡




京公网安备 11010802022788号







