Browse Source

修改配置

wdl 2 years ago
parent
commit
a168af4e52
3 changed files with 5 additions and 5 deletions
  1. 2 2
      task_day/config.sh
  2. 2 2
      task_day/hdfs_to_mysql.sh
  3. 1 1
      task_day/mysql_to_hdfs.sh

+ 2 - 2
task_day/config.sh

@@ -10,6 +10,6 @@ MYSQL_PASSWORD=dwh@2022
 
 # 上格云数据库
 SAGA_HOST=39.106.8.246
-SAGA_URL="jdbc:mysql://$MYSQL_HOST:53309/saga_bi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false"
+SAGA_URL="jdbc:mysql://$MYSQL_HOST:53309/sagacloud_bi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false"
 SAGA_USER=root
-SAGA_PASSWORD='H%k3!BHw1kQXIc70'
+SAGA_PASSWORD=H%k3!BHw1kQXIc70

+ 2 - 2
task_day/hdfs_to_mysql.sh

@@ -16,7 +16,7 @@ username=$SAGA_USER
 password=$SAGA_PASSWORD
 
 hdfs_to_mysql() {
-  sqoop export -D mapred.job.queue.name=hive \
+  /usr/local/service/sqoop/bin/sqoop export -D mapred.job.queue.name=hive \
     --connect $1 \
     --username $2 \
     --password $3 \
@@ -30,7 +30,7 @@ hdfs_to_mysql() {
 }
 
 hdfs_to_mysql_by_day() {
-  sqoop export -D mapred.job.queue.name=hive \
+  /usr/local/service/sqoop/bin/sqoop export -D mapred.job.queue.name=hive \
     --connect $1 \
     --username $2 \
     --password $3 \

+ 1 - 1
task_day/mysql_to_hdfs.sh

@@ -14,7 +14,7 @@ username=$MYSQL_USER
 password=$MYSQL_PASSWORD
 
 mysql_to_hdfs_lzo() {
-	sqoop import  \
+	/usr/local/service/sqoop/bin/sqoop import  \
 	-D mapred.job.queue.name=default  \
 	--connect $1 \
 	--username $2 \