sqlContext.sql(""" SELECT user_no,cust_id,oper_code FROM cui.operation_data_android WHERE user_no <> 'null'""").repartition(1).saveAsTextFile("/out.txt")
继上次的Spark-shell脚本源码分析,还剩下后面半段.由于上次涉及了不少shell的基本内容,因此就把trap和stty放在这篇来讲述. 上篇回顾:Spark源码分析之Spark Shell(上) function main() { if $cygwin; then # Workaround for issue involving JLine and Cygwin # (see http://sourceforge.net/p/jline/bugs/40/). # If you're us