zoukankan      html  css  js  c++  java
  • 3月26

    #!/bin/sh
    home=$(cd `dirname $0`;cd ..; pwd)
    .${home}/bin/common.sh
    hdfs dfs -mkdir -p {fsimage_detail_hdfs_path}
    hdfs dfs -rm -r ${fsimage_detail_hdfs_path}}
    
    hadoop jar ${lib_home}/ops-fsimage-detail-2.0-release.jar \
    com.djt.fsimage.detail.mrdetail.FsImageLogMR \
    -Dmapreduce.job.queuename=${yarn_queue_offline} \
    -DinputPath=${fsimage_org_hdfs_path} \
    -DoutputPath=${fsimage_detail_hdfs_path} \
    -Dday=${day} \
    -DreduceCount=20
    
    if [ "${hive_on}" == 'true' ]
    then
        hive -e "alter table xunshan.dwd_fsimage_detail add partition (day=${day},cluster='${cluster}') location '${fsimage_detail_hdfs_path}}'"

    hive.query.string

    hive.current.database                                                                                                                                                                                                                                         

    ########## 今天的苦逼是为了不这样一直苦逼下去!##########
  • 相关阅读:
    导出api文档
    Webservice测试从头来
    Java8新特性【转】
    spring获取bean的时候严格区分大小写
    java static 方法使用笔记
    maven Spring获取不到配置文件
    4月22日
    4月21日
    9月20日
    9月18日
  • 原文地址:https://www.cnblogs.com/ruii/p/14584295.html
Copyright © 2011-2022 走看看