Member since
04-17-2016
75
Posts
9
Kudos Received
0
Solutions
04-29-2016
09:08 PM
Thanks for your reply and i will try this and let you know if it works. I greatly appreciate your your effort and time.....
... View more
04-28-2016
12:46 AM
Hi Kirk Haslbeck, Thanks for your reply. But, I have to fulfill this through Spark 1.2.1. I greatly appreciate your reply..
... View more
04-27-2016
04:57 PM
1 Kudo
Hi, I'm trying to read a hive table using HiveContext and built a jar-file using SBT tool. I am getting the below error. value toJSON is not a member of org.apache.spark.sql.SchemaRDD But, it works well in spark-shell. Version: Spark 1.2.1 My sbt file has the below content name := "Simple Project" version := "1.0" scalaVersion := "2.10.4" libraryDependencies += "org.apache.spark" %% "spark-core" % "1.2.1" libraryDependencies += "org.apache.spark" %% "spark-sql" % "1.0.0"
libraryDependencies += "org.apache.spark" % "spark-hive_2.10" % "1.1.0" My source code is:
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext._
import org.apache.spark.SparkContext
import org.apache.spark.sql.hive.HiveContext object DeptJson {
def main(args:Array[String]) {
val conf = new SparkConf().setAppName("jeeJson")
val sc = new SparkContext(conf)
val hc = new HiveContext(sc) val dept = hc.sql("select * from departments") dept.toJSON.saveAsTextFile("dept.json") } } I'd appreciate if someone could help on this. Thanks...
... View more
Labels:
- Labels:
-
Apache Hive
-
Apache Spark
03-30-2016
01:46 AM
Hi Artem Ervits, Thank you very much for your valuable time . I tried and it did exactly the same what you said. Once again Thanks!
... View more
03-30-2016
12:55 AM
1 Kudo
Hi, what does the code do RDD.map(e => e.split(",")(1)) in spark with scala? I know RDD.map(e => e.split(",")) would split a string with ',' separated. But, I don't get the (1) in the code. Could somebody give me some information on this? I would greatly appreciate your answer. Thanks!
... View more
Labels:
- Labels:
-
Apache Spark
01-21-2016
06:18 PM
Hi rich, I greatly appreciate your help. Thanks for your support. I'd like to know what the issue is for future reference.. Once again Thanks..
... View more
01-21-2016
05:58 PM
Hi thanks for your reply. I terminated the old one and this is the new one and still the same problem. Public DNS: ec2-54-86-20-155.compute-1.amazonaws.com Public IP
54.86.20.155
Could you please login and see what the issue is ? Thanks..
... View more
01-21-2016
05:29 PM
Hi there, @rich @Guilherme Braccialli I'm have scheduled my HDPCD exam next week. I couldn't practice exam in AWS since there are no services running except Ganglia and ZooKeeper. I tried the below commands, but no use. ssh root@namenode
##password is: hadoop
service ambari-agent restartexit./start_all_services.sh
I even tried through ambari to start the services, i can see the progress in green and ultimately ends with red color triangle. Please help me, so that i can practice the exam prior to my original one. I checked even if firewall status is turned off.If you're available, please try to login the instance and see the error. Thanks in advance... @rich
... View more
01-20-2016
07:16 PM
Hi Rich, Thanks for your reply, the public dns changes every time whenever i login to. If you are available now, i'll login to aws and send you the dns. Please let me know if you are available now. @rich
... View more
01-20-2016
06:17 PM
Hi Artem Ervits , Thanks for your reply.. I tried through ambari starting the services, but doesn't work...
... View more
- « Previous
- Next »