-
-
Notifications
You must be signed in to change notification settings - Fork 3
fix: Remove userClassPathFirst properties #355
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 11 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
8e1f237
feat(test): addded test for delta.io
razvan e82bb56
fix: remove userClassPathFirst and extraClassPath properties.
razvan 7f65711
feat: remove all refs to the extra-jars folder
razvan faef52d
fix: pr number
razvan fa0f40f
fix lints
razvan a93de66
Revert extra-jars removal but don't set the userClassPathFirst proper…
razvan a76d5e1
fix(tests): update Python script for logging tests
razvan 91cf911
fix(docs): update changelog and add logging.adoc page
razvan 8531e85
fix: language tool lints
razvan ccb6672
fix: better logging docs
razvan eba0795
Remove the logging configuration for the Spark submit job
siegfriedweber 6e08536
Update CHANGELOG.md
razvan 761f1dc
Update docs/modules/spark-k8s/pages/usage-guide/logging.adoc
razvan fc86d7a
regenerate charts
razvan f4ca6b5
Remove unnecessary volume mount
siegfriedweber d78b3d2
Remove the logging configuration for the submit job in all tests
siegfriedweber bd23972
Merge branch 'feat/delta' of github.com:stackabletech/spark-k8s-opera…
siegfriedweber 61a82ff
Implement review feedback
razvan 3815236
Fix assertions in the resources test
siegfriedweber 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
= Logging | ||
|
||
The Spark operator installs a https://vector.dev/docs/setup/deployment/roles/#agent[vector agent] as a side-car container in every application Pod except the `job` Pod that runs `spark-submit`. It also configures the logging framework to output logs in XML format. This is the same https://logging.apache.org/log4j/2.x/manual/layouts.html#XMLLayout[format] used across all Stackable products and it enables the https://vector.dev/docs/setup/deployment/roles/#aggregator[vector aggregator] to collect logs across the entire platform. | ||
razvan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
It is the user's responsibility to install and configure the vector aggregator, but the agents can discover the aggregator automatically using a discovery ConfigMap as described in the xref:concepts:logging.adoc[logging concepts]. | ||
|
||
NOTE: Only logs produced by the application's driver and executors are collected. Logs produced by `spark-submit` are discarded. | ||
|
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,10 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
{% if lookup('env', 'VECTOR_AGGREGATOR') %} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: vector-aggregator-discovery | ||
{% endif %} |
9 changes: 9 additions & 0 deletions
9
tests/templates/kuttl/delta/01-install-vector-aggregator-discovery-configmap.yaml.j2
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,9 @@ | ||
{% if lookup('env', 'VECTOR_AGGREGATOR') %} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: vector-aggregator-discovery | ||
data: | ||
ADDRESS: {{ lookup('env', 'VECTOR_AGGREGATOR') }} | ||
{% endif %} |
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,25 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: minio-credentials | ||
labels: | ||
secrets.stackable.tech/class: s3-credentials-class | ||
timeout: 240 | ||
stringData: | ||
accessKey: minioAccessKey | ||
secretKey: minioSecretKey | ||
# The following two entries are used by the Bitnami chart for MinIO to | ||
# set up credentials for accessing buckets managed by the MinIO tenant. | ||
root-user: minioAccessKey | ||
root-password: minioSecretKey | ||
--- | ||
apiVersion: secrets.stackable.tech/v1alpha1 | ||
kind: SecretClass | ||
metadata: | ||
name: s3-credentials-class | ||
spec: | ||
backend: | ||
k8sSearch: | ||
searchNamespace: | ||
pod: {} |
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,20 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 900 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-minio | ||
status: | ||
readyReplicas: 1 | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: minio-client | ||
labels: | ||
app: minio-client | ||
status: | ||
phase: Running |
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,48 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: >- | ||
helm install test-minio | ||
--namespace $NAMESPACE | ||
--version 11.9.2 | ||
-f helm-bitnami-minio-values.yaml | ||
--repo https://charts.bitnami.com/bitnami minio | ||
timeout: 240 | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: minio-client | ||
labels: | ||
app: minio-client | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: minio-client | ||
restartPolicy: Never | ||
containers: | ||
- name: minio-client | ||
image: docker.io/bitnami/minio-client:2022.8.11-debian-11-r3 | ||
command: ["bash", "-c", "sleep infinity"] | ||
stdin: true | ||
tty: true | ||
env: | ||
- name: MINIO_SERVER_ACCESS_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: minio-credentials | ||
key: root-user | ||
optional: false | ||
- name: MINIO_SERVER_SECRET_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: minio-credentials | ||
key: root-password | ||
optional: false | ||
- name: MINIO_SERVER_HOST | ||
value: test-minio | ||
- name: MINIO_SERVER_PORT_NUMBER | ||
value: "9000" | ||
- name: MINIO_SERVER_SCHEME | ||
value: http |
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,9 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
# give minio enough time to start | ||
- command: sleep 10 | ||
- command: kubectl exec -n $NAMESPACE minio-client -- sh -c 'mc alias set test-minio http://test-minio:9000 $$MINIO_SERVER_ACCESS_KEY $$MINIO_SERVER_SECRET_KEY' | ||
- command: kubectl exec -n $NAMESPACE minio-client -- mc mb test-minio/my-bucket | ||
- command: kubectl exec -n $NAMESPACE minio-client -- mc policy set public test-minio/my-bucket |
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,12 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 300 | ||
--- | ||
# The Job starting the whole process | ||
apiVersion: spark.stackable.tech/v1alpha1 | ||
kind: SparkApplication | ||
metadata: | ||
name: pyspark-delta | ||
status: | ||
phase: Succeeded |
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.