Skip to content Skip to sidebar Skip to footer
Showing posts with the label Hadoop

Get List Of Files From Hdfs (hadoop) Directory Using Python Script

How to get a list of files from hdfs (hadoop) directory using python script? I have tried with foll… Read more Get List Of Files From Hdfs (hadoop) Directory Using Python Script

Hadoop: Output File Has Double Output

I am running a Hadoop program and have the following as my input file, input.txt: 1 2 mapper.py: i… Read more Hadoop: Output File Has Double Output

Pyhive, Sqlalchemy Can Not Connect To Hadoop Sandbox

I have installed, pip install thrift pip install PyHive pip install thrift-sasl and since pip ins… Read more Pyhive, Sqlalchemy Can Not Connect To Hadoop Sandbox

Python Udfs In Pig

I've seen the documentatio here, but I confess that I feel it rather lacking. I was wondering … Read more Python Udfs In Pig

Spark Java.lang.verifyerror

I get the following error when I try to call I use python client for the spark. lines = sc.textFil… Read more Spark Java.lang.verifyerror

Connect To S3 Data From Pyspark

I am trying to read a JSON file, from Amazon s3, to create a spark context and use it to process th… Read more Connect To S3 Data From Pyspark

Aws Elastic Mapreduce Doesn't Seem To Be Correctly Converting The Streaming To Jar

I have a mapper and reducer that work fine when I run them in the piped version: cat data.csv | ./m… Read more Aws Elastic Mapreduce Doesn't Seem To Be Correctly Converting The Streaming To Jar

Managing Dependencies With Hadoop Streaming?

I have a quick Hadoop Streaming question. If I'm using Python streaming and I have Python packa… Read more Managing Dependencies With Hadoop Streaming?

Get A List Of Subdirectories

I know I can do this: data = sc.textFile('/hadoop_foo/a') data.count() 240 data = sc.textFi… Read more Get A List Of Subdirectories

/bin/sh: Line 62: To: Command Not Found

I have a python code in which I am calling a shell command. The part of the code where I did the sh… Read more /bin/sh: Line 62: To: Command Not Found

Spark 2.2 Thrift Server Error On Dataframe Numberformatexception When Query Hive Table

I have Hortonworks HDP 2.6.3 running Spark2 (v2.2). My test case is very simple: Create a Hive tab… Read more Spark 2.2 Thrift Server Error On Dataframe Numberformatexception When Query Hive Table

Reading And Writing From Hive Tables With Spark After Aggregation

We have a hive warehouse, and wanted to use spark for various tasks (mainly classification). At tim… Read more Reading And Writing From Hive Tables With Spark After Aggregation