Member since
06-09-2016
529
Posts
129
Kudos Received
104
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1733 | 09-11-2019 10:19 AM | |
| 9326 | 11-26-2018 07:04 PM | |
| 2486 | 11-14-2018 12:10 PM | |
| 5321 | 11-14-2018 12:09 PM | |
| 3146 | 11-12-2018 01:19 PM |
05-22-2018
09:57 PM
1 Kudo
@Ivan Majnaric Nothing should happen. Your spark application will continue running and you will be still be able to submit applications. You will loose access to the spark history ui of course. HTH *** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
... View more
05-22-2018
07:43 PM
@David Sandoval The code from the link you shared is using Spark 2 and is streaming from Kafka using Structured Streaming. Structured Streaming is TP since HDP 2.6.3. You are running HDP 2.5 with spark 1.6, you should try following link steps using 2.6.3 onwards with spark 2. HTH *** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
... View more
05-22-2018
07:31 PM
@Michael Bronson For the password you need to send the basic authorization header like this -H 'Authorization: Basic XXXXXXX' Following link shows how to create the header using most popular languages: https://gist.github.com/brandonmwest/a2632d0a65088a20c00a HTH
... View more
05-22-2018
07:25 PM
1 Kudo
@Michael Bronson Perhaps you can use services rest api to check like this: curl -iv -u admin -X GET http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/KAFKA If service is not installed you will received a response indicating resource does not exist. HTH *** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
... View more
05-22-2018
12:09 PM
@RAUI I haven't been able to replicate this problem. My suggestion is you find out what other database already exists and on which location. show databases; describe formatted abc; Since you are not specifying the location on your create database statement, the default location may be different and hence the error. Or perhaps there is a permission issue to that location. You can try specifying the location and checking the permissions. HTH
... View more
05-18-2018
04:38 PM
@John Doe When you like to accept an answer you should look for this Then Accept HTH
... View more
05-18-2018
04:33 PM
@Anuj Tanwar AFAIK updates are supported with spark jdbc. Alternative is to use standard jdbc - You can read more here https://stackoverflow.com/questions/34643200/spark-dataframes-upsert-to-postgres-table *** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
... View more
05-17-2018
04:40 PM
@John Doe Good to hear LOCATION helped. Please remember mark the answer if you think it has helped you with the issue.
... View more
05-16-2018
09:12 PM
@John Doe Did it throw errors before of after running the code? I think is expected to take longer since its launching an application on the cluster. Another option that may help you get passed this issue is adding the LOCATION to the directory you like the database to be created? Something like this: CREATE DATABASE IF NOT EXISTS abc LOCATION '/user/zeppelin/abc.db' HTH
... View more
05-16-2018
07:22 PM
@John Doe Could you try running on yarn client mode instead of local? I think this will help resolving the problem you have now. $ pyspark --master yarn
from pyspark.sql import SparkSession
spark =SparkSession.builder.appName("test").enableHiveSupport().getOrCreate()
spark.sql("show databases").show()
spark.sql("create database if not exists NEW_DB")
Note: If you comment this post make sure you tag my name. And If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer. HTH
... View more