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                                                                                                                                                                                                                                         

    ########## 今天的苦逼是为了不这样一直苦逼下去!##########
  • 相关阅读:
    java-数组
    编程练习
    java-循环语句
    java-条件语句if&switch
    JAVA-运算符
    JAVA-常量
    springAOP源码分析之篇一:配置文件的解析
    spring IOC容器的扩展
    spring IOC之篇六 bean的加载---bean的创建
    spring IOC之篇五 bean的加载--缓存中获取
  • 原文地址:https://www.cnblogs.com/ruii/p/14584295.html
Copyright © 2011-2022 走看看