随笔分类 - 代码实战记录
摘要:# -*- coding: utf-8 -*- __author__ = 'amcoder' __time__ = 2019 / 5 / 22 __function__ = '' """ 1、执行带参数的SQL时,请先用sql语句指定需要输入的条件列表,然后再用tuple/list进行条件批配 2、
阅读全文
摘要:/** pom依赖 <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch-hadoop</artifactId> <version>2.2.0-m1</version> </dependency> **
阅读全文
摘要:sparkContext.hadoopFile(args(0),classOf[TextInputFormat], classOf[LongWritable], classOf[Text], 1) .map(p => new String(p._2.getBytes, 0, p._2.getLeng
阅读全文
摘要:package utils import java.net.{InetAddress, InetSocketAddress} import java.sql.{Connection, DriverManager, PreparedStatement} import java.util import
阅读全文