Skip to content
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

Adding curl to livy-spark image #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manjiler
Copy link

@manjiler manjiler commented May 8, 2021

This example list under [https://github.com/JahstreetOrg/spark-on-kubernetes-helm]
does not work because curl is not present in image.

kubectl exec --namespace livy livy-0 -- \
    curl -s -k -H 'Content-Type: application/json' -X POST \
      -d '{
            "name": "SparkPi-01",
            "className": "org.apache.spark.examples.SparkPi",
            "numExecutors": 2,
            "file": "local:///opt/spark/examples/jars/spark-examples_2.11-2.4.5.jar",
            "args": ["10000"],
            "conf": {
                "spark.kubernetes.namespace": "livy"
            }
          }' "http://localhost:8998/batches" | jq

@jahstreet
Copy link
Collaborator

jahstreet commented May 14, 2021

Awesome catch, thanks. We should also bump the image version and then merge. 👍

@manjiler
Copy link
Author

@jahstreet is this image version 3.2.0 in "0.8.0-incubating-spark_3.0.1_2.12-hadoop_3.2.0_cloud"... ?
this becomes "3.3.0"?

@jahstreet
Copy link
Collaborator

Ahh, good question, 🤦 the versioning is not straightforward here. Please ignore it, I'll need to rethink the versioning later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants