# parameter-util **Repository Path**: arye/parameter-util ## Basic Information - **Project Name**: parameter-util - **Description**: 数据开发的传参规范和模板 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: https://blog.csdn.net/Yellow_python/article/details/122088401 - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-16 - **Last Updated**: 2022-06-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 主页 https://blog.csdn.net/Yellow_python/article/details/121534410 ### 配置文件路径规范 - 本地路径和生产环境HDFS路径的相对路径要一致 - 配置文件相对路径:`/config/数据库类型/主机地址/用户名.properties` 例如:`/config/mysql/prod105/root.properties` - 明文密码应存放于配置文件中,配置文件不上传到代码仓库,在`.gitignore`处配置 ### 在HDFS创建配置文件的文件夹 ```shell hadoop fs -mkdir /config hadoop fs -mkdir /config/mysql hadoop fs -mkdir /config/mysql/prod105 ``` ```shell hadoop fs -put root.properties /config/mysql/prod105/ ``` ### git #### 开发环境 ```shell git clone https://gitee.com/arye/parameter-util.git cd parameter-util git add . git commit -m "修改了啥" git push ``` #### 初次部署 ```shell cd /opt/module/giteeProjects git clone https://gitee.com/arye/parameter-util.git ``` #### 部署更新 ```shell cd /opt/module/giteeProjects/parameter-util;git pull ```