摘要: https://teddysun.com/486.html 阅读全文
posted @ 2018-03-22 23:15 chenzechao 阅读(175) 评论(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 阅读(401) 评论(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 阅读(89301) 评论(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 阅读(159) 评论(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 阅读(236) 评论(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 阅读(129) 评论(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 阅读(2582) 评论(0) 推荐(2)
摘要: ### scala源码 /* SimpleApp.scala */ import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.SparkConf import org.apache.log4j.Logger import org.apache.log4j.... 阅读全文
posted @ 2017-10-14 23:26 chenzechao 阅读(184) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2017-10-14 23:21 chenzechao 阅读(474) 评论(0) 推荐(0)