Returns Null when reading data from XML Ask Question

2018-02-27 Thread Sateesh Karuturi
I am trying to Parsing the data from XML file through Spark using databrics library Here is my code: import org.apache.spark.SparkConfimport org.apache.spark.SparkContextimport org.apache.spark.sql.SQLContextimport org.apache.spark.sql.functionsimport java.text.Formatimport

Getting Exception while running Drill-mondrian cube

2017-06-13 Thread Sateesh Karuturi
Hello.., I am trying to execute the mondrian schema which is integrated with Apache Drill. While running this schema i am getting *customer_w_ter *table not found exception. here is my schema example: ** ** ** ** ** *

Re: write dataframe to phoenix

2017-03-27 Thread Sateesh Karuturi
:30 PM, Dhaval Modi <dhavalmod...@gmail.com> wrote: > Hi Sateesh, > > If you are running from spark shell, then please include Phoenix spark jar > in classpath. > > Kindly refer to url that Sandeep provide. > > > Regards, > Dhaval > > > On Mar 27, 2

Re: write dataframe to phoenix

2017-03-27 Thread Sateesh Karuturi
.option("table", "TABLE1") \ > .option("zkUrl", "localhost:2181") \ > .save() > > > > On Mon, Mar 27, 2017 at 10:19 AM, Sateesh Karuturi < > sateesh.karutu...@gmail.com> wrote: > >> Please anyone help me out how t

write dataframe to phoenix

2017-03-26 Thread Sateesh Karuturi
Please anyone help me out how to write dataframe to phoenix in java? here is my code: pos_offer_new_join.write().format("org.apache.phoenix.spark").mode(SaveMode.Overwrite) .options(ImmutableMap.of("driver", "org.apache.phoenix.jdbc.PhoenixDriver","zkUrl",

Re: write Dataframe to phoenix

2017-03-20 Thread Sateesh Karuturi
oject has dependency on phoenix-spark jar? : ) > See Spark setup at http://phoenix.apache.org/phoenix_spark.html > > Regards, > NaHeon > > 2017-03-20 15:31 GMT+09:00 Sateesh Karuturi <sateesh.karutu...@gmail.com>: > >> >> I am trying to write Dataframe to Phoenix. >&

write Dataframe to phoenix

2017-03-20 Thread Sateesh Karuturi
I am trying to write Dataframe to Phoenix. Here is my code: 1. df.write.format("org.apache.phoenix.spark").mode(SaveMode.Overwrite). options(collection.immutable.Map( 2. "zkUrl" -> "localhost:2181/hbase-unsecure", 3. "table" -> "TEST")).save(); and i am getting following exception:

Phoenix-spark read example in spark-2.0.0

2017-03-18 Thread Sateesh Karuturi
Hello friends.., I am very new to Apache Phoenix and i just started running sample phoenix spark example in spark 1.6 version. it was successful and now i want to run this example in spark version 2.0.0. Is phoenix provides support for spark-2.0.0? previously i used this command: DataFrame

Getting Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/phoenix/jdbc/PhoenixDriver Exception

2017-03-16 Thread Sateesh Karuturi
Hello folks.., i am trying to run sample phoenix spark application, while i am trying to run i am getting following exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/phoenix/jdbc/PhoenixDriver Here is my sample code: package com.inndata.spark.sparkphoenix;

Getting Exception in thread "main" java.lang.ClassNotFoundException: Failed to find data source: org.apache.phoenix.spark. Please find packages at http://spark-packages.org Exception

2017-03-15 Thread Sateesh Karuturi
Hello folks.., I am trying to execute sample spark-phoenix application. but i am getting Exception in thread "main" java.lang.ClassNotFoundException: Failed to find data source: org.apache.phoenix.spark. Please find packages at http://spark-packages.org exception. here is my code: package

access Broadcast Variables in Spark java

2016-12-20 Thread Sateesh Karuturi
I need to process spark Broadcast variables using Java RDD API. This is my code what i have tried so far: This is only sample code to check whether its works or not? In my case i need to work on two csvfiles. SparkConf conf = new SparkConf().setAppName("BroadcastVariable").setMaster("local");

Getting empty values while receiving from kafka Spark streaming

2016-09-18 Thread Sateesh Karuturi
i am very new to *Spark streaming* and i am implementing small exercise like sending *XML* data from *kafka* and need to receive that *streaming* data through *spark streaming.* I tried in all possible ways.. but every time i am getting *empty values.* *There is no problem in Kafka side, only

Spark Streaming from existing RDD

2016-01-29 Thread Sateesh Karuturi
Anyone please help me out how to create a DStream from existing RDD. My code is: JavaSparkContext ctx = new JavaSparkContext(conf);JavaRDD rddd = ctx.parallelize(arraylist); Now i need to use these *rddd* as input to *JavaStreamingContext*.

Stream S3 server to Cassandra

2016-01-28 Thread Sateesh Karuturi
Hello Anyone... please help me to how to Stream the XML files from S3 server to cassandra db using Spark Streaming java. presently iam using Spark core to do that job..but problem is i have to to run for every 15 mints.. thats why iam looking for Spark Streaming.

Deleting empty rows from hive table through java

2016-01-04 Thread Sateesh Karuturi
Hello... Anyone please help me how to delete empty rows from hive table through java? Thanks in advance

how to fetch all of data from hbase table in spark java

2015-12-18 Thread Sateesh Karuturi
Hello experts... i am new to spark, anyone please explain me how to fetch data from hbase table in spark java Thanks in Advance...

flatMap function in Spark

2015-12-08 Thread Sateesh Karuturi
Guys... I am new to Spark.. Please anyone please explain me how flatMap function works with a little sample example... Thanks in advance...

RDD functions

2015-12-04 Thread Sateesh Karuturi
Hello Spark experts... Iam new to Apache Spark..Can anyone send me the proper Documentation to learn RDD functions. Thanks in advance...

[no subject]

2015-12-04 Thread Sateesh Karuturi
user-sc.1449231970.fbaoamghkloiongfhbbg-sateesh.karuturi9= gmail@spark.apache.org

Getting error while performing Insert query

2015-09-08 Thread Sateesh Karuturi
hello..., iam using hive 1.1 and tez 0.7... Whenever iam trying to INSERT

Getting error while performing Insert query

2015-09-08 Thread Sateesh Karuturi
hello..., iam using hive 1.1 and tez 0.7... Whenever iam trying to INSERT data into hive table using tez via java iam getting following error: *Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException [Error 10293]:

Getting error while performing Insert query

2015-09-08 Thread Sateesh Karuturi
hello..., iam using hive 1.1 and tez 0.7... Whenever iam trying to INSERT data into hive table using tez via java iam getting following error: *Exception in thread "main" org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException [Error 10293]:

Hive on tez error

2015-08-27 Thread Sateesh Karuturi
I am trying to connect hive database(execution.engine value changed to tez) using Java code... In case of select query its working But in the case of INSERT getting an error: The error looks like. Error while processing statement: FAILED: Execution Error, return code 1 from

Hive on tez error

2015-08-27 Thread Sateesh Karuturi
I am trying to connect hive database(execution.engine value changed to tez) using Java code... In case of select query its working But in the case of INSERT getting an error: The error looks like. Error while processing statement: FAILED: Execution Error, return code 1 from

getting mismatched input 'ROW' expecting EOF error in hive creation

2015-08-04 Thread Sateesh Karuturi
i want create a hive table using java code. my code is package com.inndata.services; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Connection; import java.sql.Statement; import java.sql.DriverManager; public class HiveCreateTable { private static String driverName =

getting mismatched input 'ROW' expecting EOF error in hive creation

2015-08-04 Thread Sateesh Karuturi
i want create a hive table using java code. my code is package com.inndata.services; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Connection; import java.sql.Statement; import java.sql.DriverManager; public class HiveCreateTable { private static String driverName =

Getting error in creating a hive table via java

2015-07-31 Thread Sateesh Karuturi
I would like to create a table in hive using Java. Using the following way to do it: public class HiveCreateTable { private static String driverName = com.facebook.presto.jdbc.PrestoDriver; public static void main(String[] args) throws SQLException { // Register driver and create

execution error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.teztask error on hive on tez

2015-07-29 Thread Sateesh Karuturi
iam using hive 1.0 and tez 0.7 whenever iam performing insert query its returns following error: execution error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.teztask

hive on tez

2015-06-22 Thread Sateesh Karuturi
i have a small doubt towards tez installation which version of hive is required for apache tez 0.7.0?

error on hive 1.2.0

2015-06-18 Thread Sateesh Karuturi
iam using *hive 1.2.0* and *hadoop 2.6.0*. whenever iam running hive on my machine... *select* query works fine but in case of *count(*)* it shows following *error*: Diagnostic Messages for this Task: Container launch failed for container_1434646588807_0001_01_05

error on hive insert query

2015-06-16 Thread Sateesh Karuturi
iam using *hive 1.0.0* and *tez 0.5.2.* when i set *hive.execution.engine* value in hive-site.xml to *tez*select query works well... but in case of *insert* getting error. the query is : *insert into table tablename values(intvalue,'string value');* and the error is : *FAILED: Execution Error,

hive on tez error

2015-06-15 Thread Sateesh Karuturi
iam using hive 1.0.0 and tez 0.5.2.. whenever iam trying to open the hive getting following error: Exception in thread main java.lang.RuntimeException: java.io.IOException: Previous writer likely failed to write

Re: hive on tez error

2015-06-15 Thread Sateesh Karuturi
:9000 ESTABLISHED 8157/java On Tue, Jun 16, 2015 at 1:36 AM, Steve Howard stevedhow...@gmail.com wrote: What does netstat -anp | grep 9000 show? On Mon, Jun 15, 2015 at 3:47 PM, Sateesh Karuturi sateesh.karutu...@gmail.com wrote: iam using hive 1.0.0 and tez 0.5.2.. whenever iam trying

hive on tez error

2015-06-15 Thread Sateesh Karuturi
iam using hive 1.0.0 and tez 0.5.2.. whenever iam trying to open the hive getting following error: Exception in thread main java.lang.RuntimeException: java.io.IOException: Previous writer likely failed to write

Re: hive on tez error

2015-06-10 Thread Sateesh Karuturi
to the app id. If still could not find it, then please refer to the Resource Manager UI. Best Regard, Jeff Zhang From: Sateesh Karuturi sateesh.karutu...@gmail.com Reply-To: user@tez.apache.org user@tez.apache.org Date: Wednesday, June 10, 2015 at 7:51 PM To: user@tez.apache.org user

Re: Re: hive on tez error

2015-06-10 Thread Sateesh Karuturi
-- r7raul1...@163.com *From:* Sateesh Karuturi sateesh.karutu...@gmail.com *Date:* 2015-06-10 17:10 *To:* user user@tez.apache.org *Subject:* Re: Re: hive on tez error configuration property nametez.lib.uris/name value${fs.defaultFS}/tez,${fs.defaultFS}/tez/lib/value /property

hive tez error

2015-06-08 Thread Sateesh Karuturi
getting FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask error... when iam trying to perform insert operation on hive(set hive.execution.engine=tez). whenever hive.execution.engine value is set to mr its works fine please help me out

Re: hive tez error

2015-06-08 Thread Sateesh Karuturi
, Jeff Zhang From: Sateesh Karuturi sateesh.karutu...@gmail.com Reply-To: user@hive.apache.org user@hive.apache.org Date: Monday, June 8, 2015 at 3:45 PM To: user@hive.apache.org user@hive.apache.org Subject: hive tez error getting FAILED: Execution Error, return code 1 from

Exception in thread main java.lang.RuntimeException: java.io.IOException: Previous writer likely failed to write hdfs://localhost:8020/tmp/hive/hadoop/_tez_session_dir/39ba9c15-d9ed-4582-a4ce-11ae8b

2015-06-04 Thread Sateesh Karuturi
I am using *hive 1.0.0* and *apache tez 0.5.2* When I configure hive to use tez I get an exception. In *hive-site.xml* when the *hive.execution.engine* value is mr its works fine. But if I set it to tez I get this error: Exception in thread main java.lang.RuntimeException: java.io.IOException:

create statement in hive 1.0.0.

2015-06-04 Thread Sateesh Karuturi
anyone help me please... how to write insert statement in hive 1.0.0?

Re: NoSuchMethodError when hive.execution.engine value its tez

2015-06-02 Thread Sateesh Karuturi
, 2015 at 7:09 PM, Sateesh Karuturi sateesh.karutu...@gmail.com wrote: I am using *hive 1.0.0* and *apache tez 0.4.1* When I configure hive to use tez I get an exception. In *hive-site.xml* when the *hive.execution.engine* value is mr its works fine. But if I set it to tez I get this error

NoSuchMethodError when hive.execution.engine value its tez

2015-06-02 Thread Sateesh Karuturi
I am using *hive 1.0.0* and *apache tez 0.4.1* When I configure hive to use tez I get an exception. In *hive-site.xml* when the *hive.execution.engine* value is mr its works fine. But if I set it to tez I get this error: Exception in thread main java.lang.NoSuchMethodError: