摘要: # -*- coding=utf-8 -*- #pip install redis import redis pool = redis.ConnectionPool(host='hadoop1', port='6379',db=2) r = redis.Redis(connection_pool=pool) # f = open('../data/ModelFile.txt') f = ope... 阅读全文
posted @ 2018-06-27 15:38 uuhh 阅读(193) 评论(0) 推荐(0)
摘要: package com.bjsxt.data import java.io.PrintWriter import org.apache.log4j.{ Level, Logger } import org.apache.spark.mllib.classification.{ LogisticRegressionWithLBFGS, LogisticRegressionModel, Logi... 阅读全文
posted @ 2018-06-27 15:29 uuhh 阅读(477) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-06-27 08:27 uuhh 阅读(155) 评论(0) 推荐(0)