Skip to content

Instantly share code, notes, and snippets.

@gaborgsomogyi
Last active September 17, 2020 12:44
Show Gist options
  • Select an option

  • Save gaborgsomogyi/03bade548902f74cac7d0962f76c76f1 to your computer and use it in GitHub Desktop.

Select an option

Save gaborgsomogyi/03bade548902f74cac7d0962f76c76f1 to your computer and use it in GitHub Desktop.
[gaborsomogyi:~/certs] 34s 130 $ keytool -genkey -keyalg RSA -alias spark -keystore spark-keystore.jks -validity 3650 -keysize 2048
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: gsomogyi-MBP16
What is the name of your organizational unit?
[Unknown]: Engineering
What is the name of your organization?
[Unknown]: Cloudera
What is the name of your City or Locality?
[Unknown]: Budapest
What is the name of your State or Province?
[Unknown]: Budapest
What is the two-letter country code for this unit?
[Unknown]: HU
Is CN=gsomogyi-MBP16, OU=Engineering, O=Cloudera, L=Budapest, ST=Budapest, C=HU correct?
[no]: yes
Enter key password for <spark>
(RETURN if same as keystore password):
Re-enter new password:
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore spark-keystore.jks -destkeystore spark-keystore.jks -deststoretype pkcs12".
gaborsomogyi:~/spark] SPARK-24621(+36/-1)+* 6m8s 130 ± cat conf/spark-defaults.conf
spark.ssl.enabled true
spark.ssl.ui.port 0
spark.ssl.keyStore /Users/gaborsomogyi/certs/spark-keystore.jks
spark.ssl.keyStorePassword cloudera
spark.ssl.keyPassword cloudera
spark.ssl.trustStore /Users/gaborsomogyi/certs/truststore.jks
spark.ssl.trustStorePassword cloudera
spark.ssl.enabledAlgorithms ECDHE-RSA-AES256-SHA,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
spark.ssl.protocol TLSv1.2
spark.ssl.trustStoreType JKS
[gaborsomogyi:~/spark] SPARK-24621(+36/-1)+* ± ./sbin/start-master.sh --properties-file conf/spark-defaults.conf
[gaborsomogyi:~/spark] SPARK-24621(+36/-1)+* 1 ± ./sbin/start-slave.sh --properties-file conf/spark-defaults.conf spark://gsomogyi-MBP16:7077
[gaborsomogyi:~/spark] SPARK-24621(+36/-1)+* 1 ± ./bin/spark-shell --master spark://gsomogyi-MBP16:7077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment