摘要: 文件转字节数组: private byte[] fileConvertToByteArray(File file) { byte[] data = null; try { FileInputStream fis = new FileInputStream(file); ByteArrayOutput 阅读全文
posted @ 2019-08-27 08:43 11014p 阅读(150) 评论(0) 推荐(0)
摘要: 准备工作:从hadoop集群找到core-site.xml,hdfs-site.xml,yarn-site.xml配置文件,放到项目对应资源配置目录下。这种方式属性配置全,自己配置容易遗漏配置,导致 一些无法预料的错误。 阅读全文
posted @ 2019-08-27 08:41 11014p 阅读(764) 评论(0) 推荐(0)