spark-shell - 将结果保存成一个文件
2016-01-27 15:52
225 查看
sqlContext.sql("""
SELECT user_no,cust_id,oper_code
FROM cui.operation_data_android
WHERE user_no <> 'null'
""").repartition(1).saveAsTextFile("/out.txt")
SELECT user_no,cust_id,oper_code
FROM cui.operation_data_android
WHERE user_no <> 'null'
""").repartition(1).saveAsTextFile("/out.txt")
相关文章推荐
- bash变量测试与内容替换-61
- ssh登录报错-bash fork retry Resource temporarily unavailable
- Hbase shell
- shell 脚本 测试webApp
- saltstack远程操作WINDOWS的POWERSHELL脚本
- Lvs别样的自动部署监控shell脚本
- Linux Shell 按Tab键不能补全
- deepin(linux)-bash: passenger-install-nginx-module:: 未找到命令
- expect脚本与shell脚本相结合
- 启动和停止Java应用程序的Shell脚本
- Shell 是个什么玩意
- shell要点
- How to overlay an icon over existing shell objects
- Linux中切换用户变成-bash4.1-$的解决方法
- adb shell下查看sqlite数据库
- Linux Shell的 &
- shell脚本-实现网站自动登录
- Linux曲径通幽:Shell编程(别名、历史、输入输出重定向、多命令顺序执行、管道符、通配符)
- Linux下写shell脚本
- PowerShell 拷贝某段时间内的文件