-
Notifications
You must be signed in to change notification settings - Fork 331
SAMZA-2804: Concurrency issues identified in run-class.sh on samza-yarn #1716
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,12 @@ cd $base_dir | |
| base_dir=`pwd` | ||
| cd $home_dir | ||
|
|
||
| # Note: When using samza-yarn, home_dir looks like: | ||
| # /<hadoop dir>/usercache/<linux account>/appcache/application_1745893616511_0059/container_e64_1745893616511_0059_01_002027 | ||
| echo home_dir=$home_dir | ||
|
|
||
| # Note: When using samza-yarn, base_dir looks like: | ||
| # /<hadoop path>/usercache/<linux account>/appcache/application_1745893616511_0059/container_e64_1745893616511_0059_01_002027/__package | ||
| echo "framework base (location of this script). base_dir=$base_dir" | ||
|
|
||
| if [ ! -d "$base_dir/lib" ]; then | ||
|
|
@@ -107,10 +112,15 @@ fi | |
| # permissions for the classpath-related files when they are in their own directory. An example of where | ||
| # this is helpful is when using container images which might have predefined permissions for certain | ||
| # directories. | ||
| CLASSPATH_WORKSPACE_DIR=$base_dir/classpath_workspace | ||
|
|
||
| # Note: When on samza-yarn, CLASSPATH_WORKSPACE_DIR looks like: | ||
| # /<hadoop dir>/usercache/<linux account>/appcache/application_1745893616511_0059/container_e64_1745893616511_0059_01_002027/classpath_workspace | ||
| CLASSPATH_WORKSPACE_DIR=$home_dir/classpath_workspace | ||
| mkdir -p $CLASSPATH_WORKSPACE_DIR | ||
|
|
||
| # file containing the classpath string; used to avoid passing long classpaths directly to the jar command | ||
| PATHING_MANIFEST_FILE=$CLASSPATH_WORKSPACE_DIR/manifest.txt | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be great to log the location of manifest-file and the pathing-jar-file path.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added. |
||
| # jar file to include on the classpath for running the main class | ||
| PATHING_JAR_FILE=$CLASSPATH_WORKSPACE_DIR/pathing.jar | ||
|
|
||
|
|
@@ -126,12 +136,18 @@ else | |
| fi | ||
|
|
||
| if [ -z "$SAMZA_LOG_DIR" ]; then | ||
| SAMZA_LOG_DIR="$base_dir" | ||
| # When on samza-yarn, SAMZA_LOG_DIR will point to the symlink located at: | ||
| # /<hadoop dir>/usercache/<linux account>/appcache/application_1745893616511_0059/container_e64_1745893616511_0059_01_002027/logs | ||
| # | ||
| # When the symlink is resolved, this path will point to: | ||
| # /<hadoop dir>/userlogs/application_1745893616511_0059/container_e64_1745893616511_0059_01_002027 | ||
| SAMZA_LOG_DIR="$home_dir" | ||
| fi | ||
|
|
||
| # add usercache directory | ||
| mkdir -p $base_dir/tmp | ||
| JAVA_TEMP_DIR=$base_dir/tmp | ||
| # When on samza-yarn, JAVA_TEMP_DIR will point to a path similar to: | ||
| # /<hadoop dir>/usercache/<linux account>/appcache/application_1745893616511_0059/container_e64_1745893616511_0059_01_002027/tmp | ||
| mkdir -p $home_dir/tmp | ||
| JAVA_TEMP_DIR=$home_dir/tmp | ||
|
|
||
| # Check whether the JVM supports GC Log rotation, and enable it if so. | ||
| function check_and_enable_gc_log_rotation { | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great if we can log the pathing_jar_file path and the manifest_file path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.