Member since
07-06-2016
8
Posts
1
Kudos Received
0
Solutions
02-21-2017
02:17 AM
present we are using hadoop.root.logger="INFO,console" for mapreduce ans spark jobs. I wanna override with "WARN,console" , I tried to set global variable export HADOOP_ROOT_LOGGER="WARN,console" in hadoop_env.sh but its not working . i can see info,warn,error in yarn log. how can i override these settings.
... View more
Labels:
- Labels:
-
Apache Hadoop
12-01-2016
01:09 AM
val ebayds = sc.textFile("/user/spark/xbox.csv") case class Auction(auctionid: String, bid: Float, bidtime: Float, bidder: String, bidderrate: Int, openbid: Float, price: Float) val ebay = ebayds.map(a=>a.split(",")).map(p=>Auction(p(0),p(1).toFloat,p(2).toFloat,p(3),p(4).toInt,p(5).toFloat,p(6).toFloat)).toDF() ebay.select("auctionid").distinct.count am getting error For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
... View more
Labels:
- Labels:
-
Apache Spark
08-04-2016
06:39 PM
it worked ..thanks
... View more
08-03-2016
12:03 AM
am able to pick particular columns from relations A & B where relations have schema but if relations doesn't have any schema then it's not working.
... View more
08-02-2016
08:04 PM
Hi , am joining two relations(withoutschema) in pig and want to pick particular columns from both relations. A = load 'data1' using PigStorage(',');($0,$1...$8) B = load 'data2' using PigStoarge(',');($0..$4); C = foreach(join A by($1,$2),B by($1,$2)) generate $0,$1,$4,$5,(how to select B relation columns)
... View more
Labels:
- Labels:
-
Apache Pig
07-19-2016
10:27 PM
1 Kudo
am trying to import data from mysql to hive/hdfs but getting error. 1. QueryDatabaseTable ---mysql data ConvertAvroToJson --- output
[{"emp_id": 467260, "emp_name": "Rob", "emp_age": 32}, {"emp_id": 467261, "emp_name": "Vijay", "emp_age": 32}, {"emp_id": 467258, "emp_name": "Jayaprakash", "emp_age": 26}, {"emp_id": 467259, "emp_name": "Kalyan", "emp_age": 32}, {"emp_id": 467262, "emp_name": "Andy", "emp_age": 20}, {"emp_id": 467263, "emp_name": "Ashley", "emp_age": 24}, {"emp_id": 467264, "emp_name": "Mounika", "emp_age": 24}] splitjson -- how to split json file into single flow files
... View more
Labels:
- Labels:
-
Apache NiFi