Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute Script File should expose more control parameters #1888

Open
allwefantasy opened this issue Dec 8, 2022 · 1 comment
Open

Execute Script File should expose more control parameters #1888

allwefantasy opened this issue Dec 8, 2022 · 1 comment

Comments

@allwefantasy
Copy link
Contributor

With Byzer, you can run a local byzer script file with following command:

/opt/apps/SPARK3/spark-current/bin/spark-submit --class streaming.core.StreamingApp \
--master yarn \
--deploy-mode client \
--driver-memory 40g \
--conf spark.executor.cores=3 \
--conf spark.serializer=org.apache.spark.serializer.KryoSerializer \
--conf spark.executor.instances=2 \
--conf spark.mlsql.path.schemas=oss \
/opt/byzer/byzer-lang/main/byzer-lang-3.3.0-2.12-2.4.0-SNAPSHOT.jar  \
-streaming.platform spark \
-streaming.name byzer-engine \
-streaming.thrift false \
-streaming.rest false \
-streaming.spark.service false \
-streaming.enableHiveSupport true \
-streaming.platform_hooks tech.mlsql.runtime.SparkSubmitMLSQLScriptRuntimeLifecycle \
-streaming.mlsql.script.path file:///home/byzer/byzer-project/customer_identity.byzer \
-streaming.mlsql.script.owner owner \
-streaming.mlsql.script.jobName scheduler

however ,you may try to control more behaviors when executing the script.

@allwefantasy
Copy link
Contributor Author

For example, if you want to control the default home prefix , you can try add following config item:

-streaming.mlsql.script.query.defaultPathPrefix  /home/winubuntu/byzer-home

The query parameter in Rest can be passed to the system by key with prefix streaming.mlsql.script.query..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant