
shell
文章平均质量分 82
旅途心情
这个作者很懒,什么都没留下…
展开
-
shell 之变量详解及实战
1 定义定义变量时 your_name="xx除了显式地直接赋值,还可以用语句给变量赋值,如:for file in `ls /etc`或for file in $(ls /etc)2 变量类型运行shell时,会同时存在三种变量:(1)局部变量局部变量在脚本或命令中定义,仅在当前shell实例中有效,其他shell启动的程序不能访问局部变量。(2)环境变量所有的程序,包括shell启动的程序,都能访问环境变量,有些程序需要环境变量来保证其正常运行。必要的时候she...原创 2021-10-27 11:11:11 · 345 阅读 · 0 评论 -
shell 常用的语句整合
1.执行脚本(1)调用hive(hive -e/-f )hive --hiveconf tez.application.tags="xx/xx" --hiveconf hive.metastore.uris="xx/xx" -hivevar tableName=$tableName -hivevar partition=$partition -hivevar date=$date -f ${xx}/xx.sql(2)调用sparkspark-sql --hiveconf ...原创 2021-10-21 16:01:39 · 253 阅读 · 0 评论