You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by mu...@apache.org on 2023/04/22 15:15:30 UTC
[incubator-streampark] branch dev updated: [Improve] local workspace path check (#2682)
This is an automated email from the ASF dual-hosted git repository.
muchunjin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 555ec62e7 [Improve] local workspace path check (#2682)
555ec62e7 is described below
commit 555ec62e72551bb0791efcf4f9ebea3863fb06d8
Author: benjobs <be...@apache.org>
AuthorDate: Sat Apr 22 23:15:24 2023 +0800
[Improve] local workspace path check (#2682)
* [Improve] local workspace path check
* local workspace check
---
.../streampark-console-service/src/main/assembly/bin/streampark.sh | 1 +
.../streampark-console-service/src/main/resources/application.yml | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/streampark-console/streampark-console-service/src/main/assembly/bin/streampark.sh b/streampark-console/streampark-console-service/src/main/assembly/bin/streampark.sh
index 09805c179..23dbfb1ac 100755
--- a/streampark-console/streampark-console-service/src/main/assembly/bin/streampark.sh
+++ b/streampark-console/streampark-console-service/src/main/assembly/bin/streampark.sh
@@ -334,6 +334,7 @@ start() {
local workspace=$(echo "$conf_streampark_workspace_local" | sed 's/#.*$//g')
if [[ ! -d $workspace ]]; then
echo_r "ERROR: streampark.workspace.local: \"$workspace\" is invalid path, Please reconfigure in application.yml"
+ echo_r "NOTE: \"streampark.workspace.local\" Do not set under APP_HOME($APP_HOME). Set it to a secure directory outside of APP_HOME. "
exit 1;
fi
if [[ ! -w $workspace ]] || [[ ! -r $workspace ]]; then
diff --git a/streampark-console/streampark-console-service/src/main/resources/application.yml b/streampark-console/streampark-console-service/src/main/resources/application.yml
index 5b832f547..16f0045b0 100644
--- a/streampark-console/streampark-console-service/src/main/resources/application.yml
+++ b/streampark-console/streampark-console-service/src/main/resources/application.yml
@@ -96,7 +96,7 @@ streampark:
hadoop-user-name: hdfs
# local workspace, used to store source code and build dir etc.
workspace:
- local: /opt/streampark_workspace
+ local:
remote: hdfs://hdfscluster/streampark # support hdfs:///streampark/ 、 /streampark 、hdfs://host:ip/streampark/
# remote docker register namespace for streampark