Member since
03-06-2016
49
Posts
38
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
5791 | 03-10-2016 01:55 PM |
03-21-2016
04:16 AM
2 Kudos
I am trying to update the value of a record using spark sql in spark shell I get executed the command Update tablename set age=20 where name=justin, and I am getting the following errors scala> val teenagers = sqlContext.sql("UPDATE people SET age=20 WHERE name=Justin") java.lang.RuntimeException: [1.1] failure: ``with'' expected but identifier UPDATE found
UPDATE people SET age=20 WHERE name=Justin
^ at scala.sys.package$.error(package.scala:27)
at org.apache.spark.sql.catalyst.AbstractSparkSQLParser.parse(AbstractSparkSQLParser.scala:36) ......
Thanks Sridhar
... View more
Labels:
- Labels:
-
Apache Spark
03-17-2016
12:03 AM
1 Kudo
Hi Robert, it is working correctly if I use import sqlContext.implicits._ which is correct for spark version 1.6.0 Now I am referring to the documentation 1.6.1 http://spark.apache.org/docs/latest/sql-programming-guide.html Is this documentation ok or should I refer to any other doc specifically for 1.6.0??
... View more
03-16-2016
11:49 PM
1 Kudo
Hi Robert, Spark Version is 1.6.0 and the documentation i am refering to is https://spark.apache.org/docs/1.1.0/sql-programming-guide.html
... View more
03-16-2016
11:40 PM
2 Kudos
When I am trying to import CreateSchemaRDD from SQL Context it is creating error in spark shell scala> sc
res4: org.apache.spark.SparkContext = org.apache.spark.SparkContext@4345fd45 scala>val sqlContext = new org.apache.spark.sql.SQLContext(sc)
sqlContext: org.apache.spark.sql.SQLContext = org.apache.spark.sql.SQLContext@293432e6 scala> import sqlContext.createSchemaRDD
<console>:31: error: value createSchemaRDD is not a member of org.apache.spark.sql.SQLContext
import sqlContext.createSchemaRDD however, createSchemaRDD is not shown as a member when I press TAB button, but this is given in the Spark SQL Documentation as a correct command. Thanks Sridhar
... View more
Labels:
- Labels:
-
Apache Spark
03-10-2016
01:55 PM
3 Kudos
@Artem Ervits
In the hadoop core-site.xml file I have given the hdfs url as <configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration> After giving it as hdfs://localhost:9000/path it worked! Thank you very much! Correct command Scala> val file= sc.textFile("hdfs://localhost:9000/path")
... View more
03-10-2016
01:52 PM
@Artem Ervits I am getting the following errors java.net.ConnectException: Call From sridhar25/127.0.1.1 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
... View more
03-10-2016
04:51 AM
1 Kudo
I am trying to access a file in HDFS with the help of Spark Scala command in Spark Shell Hadoop HDFS file URL is localhost:50070/sridhar/hadoop/sample.txt I executed scala> val file = sc.textFile("hdfs://localhost:50070/sridhar/hadoop/sample.txt") then executed scala> file.foreach(println) , got the following errors java.io.IOException: Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.; Host Details : local host is: "sridhar25/127.0.1.1"; destination host is: "localhost":50070;
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:772)
at org.apache.hadoop.ipc.Client.call(Client.java:1472)
at org.apache.hadoop.ipc.Client.call(Client.java:1399)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)
at com.sun.proxy.$Proxy33.getFileInfo(Unknown Source)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:752) How to access the files without errors? Thanks!
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Spark
03-06-2016
03:11 PM
2 Kudos
@Artem Ervits After performing installation through manually, it worked perfectly and successfully got registered! Thanks a lot buddy 🙂 Yet, it is showing warning in the Service Issues The following services should be up Service ntp Not running on 1 host ?
... View more
03-06-2016
02:45 PM
1 Kudo
@Artem Ervits I have executed the above steps accordingly, yet ambari registration failed! If i am using the user account name then it is not asking for a password (password less login), but if I use root@localhost, then it is asking for password everytime.
... View more
- « Previous
-
- 1
- 2
- Next »