随笔分类 -  代码实战记录

摘要:# -*- coding: utf-8 -*- __author__ = 'amcoder' __time__ = 2019 / 5 / 22 __function__ = '' """ 1、执行带参数的SQL时,请先用sql语句指定需要输入的条件列表,然后再用tuple/list进行条件批配 2、 阅读全文
posted @ 2020-11-03 15:52 亮剑-胜哥 阅读(611) 评论(0) 推荐(0)
摘要:/** pom依赖 <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch-hadoop</artifactId> <version>2.2.0-m1</version> </dependency> ** 阅读全文
posted @ 2020-11-03 11:49 亮剑-胜哥 阅读(607) 评论(0) 推荐(0)
摘要:sparkContext.hadoopFile(args(0),classOf[TextInputFormat], classOf[LongWritable], classOf[Text], 1) .map(p => new String(p._2.getBytes, 0, p._2.getLeng 阅读全文
posted @ 2020-11-03 11:48 亮剑-胜哥 阅读(158) 评论(0) 推荐(0)
摘要:package utils import java.net.{InetAddress, InetSocketAddress} import java.sql.{Connection, DriverManager, PreparedStatement} import java.util import 阅读全文
posted @ 2020-11-03 11:47 亮剑-胜哥 阅读(920) 评论(0) 推荐(0)

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示