Skip to content

Commit

Permalink
[Feature]modify some cases from rockxsj:Feature-presto to add presto …
Browse files Browse the repository at this point in the history
…datasource support (apache#3468)

* Feature presto (#1)

* * add presto datasource support
update .gitigonre to igonre some files

* * use another presto driver

* * add LICENSE files about presto-jdbc

* * just for test sonar

Co-authored-by: rockxsj <junjun@mgtv.com>

* modify the io.prestosql.jdbc.PrestoDriver to com.facebook.presto.jdbc.PrestoDriver

* add presto connection in sql node

Co-authored-by: rockxsj <junjun@mgtv.com>
  • Loading branch information
dengc367 and rockxsj authored Aug 17, 2020
1 parent 7d7313f commit ad89f43
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ private Constants() {
public static final String COM_ORACLE_JDBC_DRIVER = "oracle.jdbc.driver.OracleDriver";
public static final String COM_SQLSERVER_JDBC_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
public static final String COM_DB2_JDBC_DRIVER = "com.ibm.db2.jcc.DB2Driver";
public static final String COM_PRESTO_JDBC_DRIVER = "io.prestosql.jdbc.PrestoDriver";
public static final String COM_PRESTO_JDBC_DRIVER = "com.facebook.presto.jdbc.PrestoDriver";

/**
* database type
Expand Down
5 changes: 5 additions & 0 deletions dolphinscheduler-ui/src/js/conf/home/store/dag/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ export default {
id: 7,
code: 'DB2',
disabled: false
},
{
id: 8,
code: 'PRESTO',
disabled: false
}
],
// Alarm interface
Expand Down
8 changes: 4 additions & 4 deletions script/scp-hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ for workerGroup in ${workersGroup[@]}
do
echo $workerGroup;
worker=`echo $workerGroup|awk -F':' '{print $1}'`
groupName=`echo $workerGroup|awk -F':' '{print $2}'`
workersGroupMap+=([$worker]=$groupName)
groupsName=`echo $workerGroup|awk -F':' '{print $2}'`
workersGroupMap+=([$worker]=$groupsName)
done


Expand All @@ -53,12 +53,12 @@ do
do
# if worker in workersGroupMap
if [[ "${workersGroupMap[${host}]}" ]] && [[ "${dsDir}" == "conf" ]]; then
sed -i ${txt} "s#worker.group.*#worker.group=${workersGroupMap[${host}]}#g" ${dsDir}/worker.properties
sed -i ${txt} "s:.*worker.groups.*:worker.groups=${workersGroupMap[${host}]}:g" ${dsDir}/worker.properties
fi

echo "start to scp $dsDir to $host/$installPath"
scp -P $sshPort -r $workDir/../$dsDir $host:$installPath
done

echo "scp dirs to $host/$installPath complete"
done
done

0 comments on commit ad89f43

Please sign in to comment.