Skip to content

Commit a22f8d8

Browse files
committed
Merge branch 'main' into feat/updates
# Conflicts: # CHANGELOG.md # pom.xml
2 parents 28478c0 + f828d7e commit a22f8d8

File tree

7 files changed

+85
-7
lines changed

7 files changed

+85
-7
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ All notable changes to this project will be documented in this file.
2323

2424
[#28]: https://github.com/stackabletech/hdfs-utils/pull/28
2525
[#29]: https://github.com/stackabletech/hdfs-utils/pull/29
26-

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM docker.stackable.tech/stackable/hadoop:3.3.6-stackable0.0.0-dev
1+
FROM docker.stackable.tech/stackable/hadoop:3.4.0-stackable0.0.0-dev
22

3-
COPY --chown=stackable:stackable ./hdfs-utils-*.jar /stackable/hadoop/share/hadoop/tools/lib/
4-
COPY --chown=stackable:stackable ./bom.json /stackable/hadoop/share/hadoop/tools/lib/hdfs-utils.cdx.json
3+
# Remove existing hdfs-utils jars, so we can ship our custom one
4+
RUN rm -f /stackable/hadoop/share/hadoop/common/lib/hdfs-utils-*.jar
5+
RUN rm -f /stackable/hadoop/share/hadoop/tools/lib/hdfs-utils-*.jar
6+
7+
COPY --chown=stackable:stackable ./hdfs-utils-*.jar /stackable/hadoop/share/hadoop/common/lib/
8+
COPY --chown=stackable:stackable ./bom.json /stackable/hadoop/share/hadoop/common/lib/hdfs-utils.cdx.json

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
<maven.compiler.release>${java.version}</maven.compiler.release>
3636
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3737

38+
<!-- Tip:
39+
Use "mvn versions:display-dependency-updates" and
40+
"mvn versions:display-plugin-updates"
41+
to check for updates -->
3842
<cleanthat.version>2.22</cleanthat.version>
3943
<error-prone.version>2.35.1</error-prone.version>
4044
<google-java-format.version>1.24.0</google-java-format.version>

test/stack/20-hdfs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ metadata:
2525
name: simple-hdfs
2626
spec:
2727
image:
28-
productVersion: 3.3.6
28+
productVersion: 3.4.0
2929
custom: hdfs # Will be overwritten by Tilt
3030
pullPolicy: IfNotPresent
3131
clusterConfig:

test/stack/30-test-hdfs-permissions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
spec:
99
containers:
1010
- name: test-hdfs-permissions
11-
image: docker.stackable.tech/stackable/hadoop:3.3.6-stackable0.0.0-dev
11+
image: docker.stackable.tech/stackable/hadoop:3.4.0-stackable0.0.0-dev
1212
env:
1313
- name: HADOOP_CONF_DIR
1414
value: /stackable/conf/hdfs

test/stack/31-benchmark-shell.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
apiVersion: batch/v1
3+
kind: Job
4+
metadata:
5+
name: benchmark-shell
6+
spec:
7+
template:
8+
spec:
9+
containers:
10+
- name: benchmark-shell
11+
image: docker.stackable.tech/stackable/hadoop:3.4.0-stackable0.0.0-dev
12+
env:
13+
- name: HADOOP_CONF_DIR
14+
value: /stackable/conf/hdfs
15+
- name: KRB5_CONFIG
16+
value: /stackable/kerberos/krb5.conf
17+
- name: HADOOP_OPTS
18+
value: -Djava.security.krb5.conf=/stackable/kerberos/krb5.conf
19+
command:
20+
- /bin/bash
21+
- -c
22+
- |
23+
set -ex
24+
klist -k /stackable/kerberos/keytab
25+
26+
log_in () { kdestroy; kinit -kt /stackable/kerberos/keytab $1/benchmark-shell.default.svc.cluster.local; }
27+
28+
log_in admin
29+
30+
bin/hdfs dfs -mkdir -p /bench
31+
bin/hdfs dfs -ls /bench
32+
33+
# for i in $(seq 0 10); do echo "Creating $i" && bin/hdfs dfs -put -f /etc/hosts /bench/$i; done
34+
35+
# Watch out for the exact command you are using! (e.g. don't use "du -h /""). Checl the NameNode logs to
36+
# make sure you actually produce enough OPA calls.
37+
# time bin/hdfs dfs -du -h /bench
38+
39+
# So that you can run the benchmark manually
40+
sleep infinity
41+
42+
exit 0
43+
volumeMounts:
44+
- name: hdfs-config
45+
mountPath: /stackable/conf/hdfs
46+
- name: kerberos
47+
mountPath: /stackable/kerberos
48+
volumes:
49+
- name: hdfs-config
50+
configMap:
51+
name: simple-hdfs
52+
- name: kerberos
53+
ephemeral:
54+
volumeClaimTemplate:
55+
metadata:
56+
annotations:
57+
secrets.stackable.tech/class: kerberos-default
58+
secrets.stackable.tech/scope: service=benchmark-shell
59+
secrets.stackable.tech/kerberos.service.names: admin,alice,bob
60+
spec:
61+
storageClassName: secrets.stackable.tech
62+
accessModes:
63+
- ReadWriteOnce
64+
resources:
65+
requests:
66+
storage: "1"
67+
securityContext:
68+
fsGroup: 1000
69+
runAsGroup: 1000
70+
runAsUser: 1000
71+
restartPolicy: OnFailure

test/topology-provider/stack/03-hdfs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ metadata:
2525
name: simple-hdfs
2626
spec:
2727
image:
28-
productVersion: 3.3.6
28+
productVersion: 3.4.0
2929
custom: hdfs # updated by tilt
3030
pullPolicy: IfNotPresent
3131
clusterConfig:

0 commit comments

Comments
 (0)