摘要: // 4.1构造映射val scores = Map("Alice" -> 10, "Bob" -> 3, "Cindy" -> 8) // 不可更改值val scoresMu = scala.collection.mutable.Map("Alice" -> 10, "Bob" -> 3, "Ci 阅读全文
posted @ 2018-03-27 14:01 chenzechao 阅读(156) 评论(0) 推荐(0)
摘要: package chapter03 import org.apache.spark.sql.DataFrame import org.apache.spark.sql.hive.HiveContext import org.apache.spark.{SparkConf, SparkContext} /** * Created by chenzechao on 2017/12/21. ... 阅读全文
posted @ 2018-03-23 18:04 chenzechao 阅读(163) 评论(0) 推荐(0)
摘要: https://teddysun.com/486.html 阅读全文
posted @ 2018-03-22 23:15 chenzechao 阅读(178) 评论(0) 推荐(0)
摘要: 1 进入hbase: hbase shell 2 进入HIVE: hive 3 4 hbase中建一张t_student_info表,添加两个列族 5 create 't_student_info','st1','st2' 6 7 hbase查看表结构 8 describe 't_student_info' 9 10 11 12 hive 创建外部表要使用EXTE... 阅读全文
posted @ 2018-03-22 15:14 chenzechao 阅读(402) 评论(0) 推荐(0)
摘要: select day -- 时间 ,date_add(day,1 - dayofweek(day)) as week_first_day -- 本周第一天_周日 ,date_add(day,7 - dayofweek(day)) as week_last_day -- 本周最后一天_周六 ,date 阅读全文
posted @ 2018-03-22 10:25 chenzechao 阅读(89352) 评论(2) 推荐(5)
摘要: 1 select 2 count(1) as cnt 3 from ( 4 select '0' as flag union all 5 select 'a' as flag union all 6 select null as flag 7 ) t0 8 where flag 0 9 ; 10 11 select 12 ... 阅读全文
posted @ 2018-03-21 09:58 chenzechao 阅读(160) 评论(0) 推荐(0)
摘要: adb 命令模拟按键事件 模拟 点击 事件 //可以解锁屏幕 adb shell input keyevent 82 //在屏幕上做划屏操作,前四个数为坐标点,后面是滑动的时间(单位毫秒) adb shell input swipe 50 250 250 250 500 //在屏幕上点击坐标点x=5 阅读全文
posted @ 2018-01-09 21:18 chenzechao 阅读(239) 评论(0) 推荐(0)
摘要: spark-shell \--master yarn \--deploy-mode client \--queue default \--driver-memory 1G \--executor-memory 1G \--num-executors 3 阅读全文
posted @ 2017-11-07 21:33 chenzechao 阅读(130) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2017-11-07 21:28 chenzechao 阅读(1) 评论(0) 推荐(0)
摘要: import org.apache.log4j.Logger import org.apache.log4j.LevelLogger.getLogger("org").setLevel(Level.OFF)Logger.getLogger("akka").setLevel(Level.OFF) 阅读全文
posted @ 2017-10-23 10:08 chenzechao 阅读(2586) 评论(0) 推荐(2)