Skip to content

SAMZA-2482: Add app.main.class and app.main.args in ApplicationConfig#1308

Merged
xinyuiscool merged 13 commits into
apache:masterfrom
kw2542:SAMZA-2482
Mar 10, 2020
Merged

SAMZA-2482: Add app.main.class and app.main.args in ApplicationConfig#1308
xinyuiscool merged 13 commits into
apache:masterfrom
kw2542:SAMZA-2482

Conversation

@kw2542
Copy link
Copy Markdown
Contributor

@kw2542 kw2542 commented Mar 9, 2020

Design:
https://cwiki.apache.org/confluence/display/SAMZA/SEP-23%3A+Simplify+Job+Runner

Changes:

  1. Add app.main.class to ApplicationConfig
  2. Add app.main.args to ApplicationConfig

API Changes:

N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.
Upgrade Instructions:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.
Usage Instructions:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.

Tests:
N/A.

Ke Wu and others added 13 commits February 25, 2020 13:47
Design:
https://cwiki.apache.org/confluence/display/SAMZA/SEP-23%3A+Simplify+Job+Runner

Changes:
1. Simplify CommandLine by removing unnecessary arguments.

API Changes:
1. config-loader-factory removed in CommandLine
2. config-loader-properties removed in CommandLine

Upgrade Instruction:
1. Usage of --config-factory and --config-loader-factory will be switched to --config job.config.loader.factory
2. Usage of --config-path and --config-loader-properties will be switched to --config job.config.loader.properties

Usage Instruction

--config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file:///location/file.txt
and
--config-loader-factory=org.apache.samza.config.loaders.PropertiesConfigLoaderFactory --config-loader-properties path=file:///location/file.txt
will be updated to
--config job.config.loader.factory=org.apache.samza.config.loaders.PropertiesConfigLoaderFactory --config job.config.loader.properties.path=file:///location/file.txt

Tests

1. Unit tests
2. Test against Hello Samza example with
deploy/samza/bin/run-app.sh --config job.config.loader.factory=org.apache.samza.config.loaders.PropertiesConfigLoaderFactory --config job.loader.properties.path=$PWD/deploy/samza/config/wikipedia-feed.properties
Design:
https://cwiki.apache.org/confluence/display/SAMZA/SEP-23%3A+Simplify+Job+Runner

Changes:
1. Add app.main.class to ApplicationConfig
2. Add app.main.args to ApplicationConfig

API Changes:

N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.
Upgrade Instructions:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.
Usage Instructions:
N/A. This is part of a series PRs, detailed information will be provided in the last/main PR.

Tests:
N/A.
Copy link
Copy Markdown
Contributor

@xinyuiscool xinyuiscool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xinyuiscool xinyuiscool merged commit 896cfee into apache:master Mar 10, 2020
@kw2542 kw2542 deleted the SAMZA-2482 branch March 10, 2020 00:26
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

Successfully merging this pull request may close these issues.

2 participants