-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDDS-1299. Support TokenIssuer interface for running jobs with OzoneFileSystem. #627
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
12 commits
Select commit
Hold shift + click to select a range
ec20912
HDDS-1299. Support TokenIssuer interface for running jobs with OzoneF…
xiaoyuyao e468d1b
Add ReadMe document to dockercompose with mr
xiaoyuyao cff7b84
Update classpath for MR
xiaoyuyao d8aa89b
checkstyle and whitespace fix
xiaoyuyao 4cd0872
Fix auth_to_local rules
xiaoyuyao bced69d
wordcount works now.
xiaoyuyao baaac04
fix yarn jhs configs
xiaoyuyao 0f171a9
Jhs working now.
xiaoyuyao 24297b2
Fix hadolint issue
xiaoyuyao 363ad73
Address CR comments
xiaoyuyao d2c01f8
Minor change to document
xiaoyuyao c2d20c5
allow null renewer
xiaoyuyao 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
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
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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| HDDS_VERSION=${hdds.version} | ||
| HADOOP_VERSION=3 |
76 changes: 76 additions & 0 deletions
76
hadoop-ozone/dist/src/main/compose/ozonesecure-mr/README.md
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 |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| <!--- | ||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. See accompanying LICENSE file. | ||
| --> | ||
| # Secure Docker-compose with KMS, Yarn RM and NM | ||
| This docker compose allows to test Sample Map Reduce Jobs with OzoneFileSystem | ||
| It is a superset of ozonesecure docker-compose, which add Yarn NM/RM in addition | ||
| to Ozone OM/SCM/NM/DN and Kerberos KDC. | ||
|
|
||
| ## Basic setup | ||
|
|
||
| ``` | ||
| cd hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/ozonesecure-mr | ||
|
|
||
| docker-compose up -d | ||
| ``` | ||
|
|
||
| ## Ozone Manager Setup | ||
|
|
||
| ``` | ||
| docker-compose exec om bash | ||
|
|
||
| kinit -kt /etc/security/keytabs/testuser.keytab testuser/[email protected] | ||
|
|
||
| ozone sh volume create /vol1 | ||
|
|
||
| ozone sh bucket create /vol1/bucket1 | ||
|
|
||
| ozone sh key put /vol1/bucket1/key1 LICENSE.txt | ||
|
|
||
| ozone fs -ls o3fs://bucket1.vol1/ | ||
| ``` | ||
|
|
||
| ## Yarn Resource Manager Setup | ||
| ``` | ||
| docker-compose exec rm bash | ||
|
|
||
| kinit -kt /etc/security/keytabs/hadoop.keytab hadoop/[email protected] | ||
| export HADOOP_MAPRED_HOME=/opt/hadoop/share/hadoop/mapreduce | ||
|
|
||
| export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/opt/hadoop/share/hadoop/mapreduce/*:/opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-0.5.0-SNAPSHOT.jar | ||
|
|
||
| hadoop fs -mkdir /user | ||
| hadoop fs -mkdir /user/hadoop | ||
| ``` | ||
|
|
||
| ## Run Examples | ||
|
|
||
| ### WordCount | ||
| Status: Fully working with HDDS-1299 | ||
| ``` | ||
| yarn jar $HADOOP_MAPRED_HOME/hadoop-mapreduce-examples-*.jar wordcount o3fs://bucket1.vol1/key1 o3fs://bucket1.vol1/key1.count | ||
|
|
||
| hadoop fs -cat /key1.count/part-r-00000 | ||
| ``` | ||
|
|
||
| ### Pi | ||
| Status: Not fully working yet, tracked by HDDS-1317 | ||
| ``` | ||
| yarn jar $HADOOP_MAPRED_HOME/hadoop-mapreduce-examples-*.jar pi 10 100 | ||
| ``` | ||
|
|
||
| ### RandomWrite | ||
| Status: Not fully working yet, tracked by HDDS-1317 | ||
| ``` | ||
| yarn jar $HADOOP_MAPRED_HOME/hadoop-mapreduce-examples-*.jar randomwriter -Dtest.randomwrite.total_bytes=10000000 o3fs://bucket1.vol1/randomwrite.out | ||
| ``` |
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.
Shall we file a jira for this targeting 0.5?
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.
We already have one: https://issues.apache.org/jira/browse/HDDS-738