-
Notifications
You must be signed in to change notification settings - Fork 0
Performance fixes #50
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
6 commits
Select commit
Hold shift + click to select a range
697a8f7
Performance fixes
lfrancke e861442
Merge branch 'main' into feat/singleton
lfrancke 9e8a717
Add changelog entry
lfrancke c64440f
Fix changelog entry
lfrancke 168f09a
chore: Update to HDFS 3.4.0 and fix Tilt workflow
sbernauer 2caf9a7
Add shell for benchmarks
sbernauer 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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
FROM docker.stackable.tech/stackable/hadoop:3.3.6-stackable0.0.0-dev | ||
FROM docker.stackable.tech/stackable/hadoop:3.4.0-stackable0.0.0-dev | ||
|
||
COPY --chown=stackable:stackable ./hdfs-utils-*.jar /stackable/hadoop/share/hadoop/tools/lib/ | ||
COPY --chown=stackable:stackable ./bom.json /stackable/hadoop/share/hadoop/tools/lib/hdfs-utils.cdx.json | ||
# Remove existing hdfs-utils jars, so we can ship our custom one | ||
RUN rm -f /stackable/hadoop/share/hadoop/common/lib/hdfs-utils-*.jar | ||
RUN rm -f /stackable/hadoop/share/hadoop/tools/lib/hdfs-utils-*.jar | ||
|
||
COPY --chown=stackable:stackable ./hdfs-utils-*.jar /stackable/hadoop/share/hadoop/common/lib/ | ||
COPY --chown=stackable:stackable ./bom.json /stackable/hadoop/share/hadoop/common/lib/hdfs-utils.cdx.json |
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
333 changes: 194 additions & 139 deletions
333
src/main/java/tech/stackable/hadoop/StackableAccessControlEnforcer.java
Large diffs are not rendered by default.
Oops, something went wrong.
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,71 @@ | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: benchmark-shell | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: benchmark-shell | ||
image: docker.stackable.tech/stackable/hadoop:3.4.0-stackable0.0.0-dev | ||
env: | ||
- name: HADOOP_CONF_DIR | ||
value: /stackable/conf/hdfs | ||
- name: KRB5_CONFIG | ||
value: /stackable/kerberos/krb5.conf | ||
- name: HADOOP_OPTS | ||
value: -Djava.security.krb5.conf=/stackable/kerberos/krb5.conf | ||
command: | ||
- /bin/bash | ||
- -c | ||
- | | ||
set -ex | ||
klist -k /stackable/kerberos/keytab | ||
|
||
log_in () { kdestroy; kinit -kt /stackable/kerberos/keytab $1/benchmark-shell.default.svc.cluster.local; } | ||
|
||
log_in admin | ||
|
||
bin/hdfs dfs -mkdir -p /bench | ||
bin/hdfs dfs -ls /bench | ||
|
||
# for i in $(seq 0 10); do echo "Creating $i" && bin/hdfs dfs -put -f /etc/hosts /bench/$i; done | ||
|
||
# Watch out for the exact command you are using! (e.g. don't use "du -h /""). Checl the NameNode logs to | ||
# make sure you actually produce enough OPA calls. | ||
# time bin/hdfs dfs -du -h /bench | ||
|
||
# So that you can run the benchmark manually | ||
sleep infinity | ||
|
||
exit 0 | ||
volumeMounts: | ||
- name: hdfs-config | ||
mountPath: /stackable/conf/hdfs | ||
- name: kerberos | ||
mountPath: /stackable/kerberos | ||
volumes: | ||
- name: hdfs-config | ||
configMap: | ||
name: simple-hdfs | ||
- name: kerberos | ||
ephemeral: | ||
volumeClaimTemplate: | ||
metadata: | ||
annotations: | ||
secrets.stackable.tech/class: kerberos-default | ||
secrets.stackable.tech/scope: service=benchmark-shell | ||
secrets.stackable.tech/kerberos.service.names: admin,alice,bob | ||
spec: | ||
storageClassName: secrets.stackable.tech | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: "1" | ||
securityContext: | ||
fsGroup: 1000 | ||
runAsGroup: 1000 | ||
runAsUser: 1000 | ||
restartPolicy: OnFailure |
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
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.
Uh oh!
There was an error while loading. Please reload this page.