Skip to content Skip to sidebar Skip to footer
Showing posts with the label Apache Spark

Numpy And Static Linking

I am running Spark programs on a large cluster (for which, I do not have administrative privileges)… Read more Numpy And Static Linking

Rdd Collect Issue

I configured a new system, spark 2.3.0, python 3.6.0, dataframe read and other operations working a… Read more Rdd Collect Issue

Is It Possible To Scale Data By Group In Spark?

I want to scale data with StandardScaler (from pyspark.mllib.feature import StandardScaler), by now… Read more Is It Possible To Scale Data By Group In Spark?

Spark-submit Fails To Detect The Installed Modulus In Pip

I have a python code which have the following 3rd party dependencies: import boto3 from warcio.arch… Read more Spark-submit Fails To Detect The Installed Modulus In Pip

Python Spark Dataframe: Replace Null With Sparsevector

In spark, I have following data frame called 'df' with some null entries: +-------+--------… Read more Python Spark Dataframe: Replace Null With Sparsevector

Spark Java Error: Size Exceeds Integer.max_value

I am trying to use spark for some simple machine learning task. I used pyspark and spark 1.2.0 to d… Read more Spark Java Error: Size Exceeds Integer.max_value

Pyspark Parse Fixed Width Text File

Trying to parse a fixed width text file. my text file looks like the following and I need a row i… Read more Pyspark Parse Fixed Width Text File

Distributing Python Module - Spark Vs Process Pools

I've made a Python module that extracts handwritten text from PDFs. The extraction can sometime… Read more Distributing Python Module - Spark Vs Process Pools

Sparkexception: Only One Sparkcontext May Be Running In This Jvm (see Spark-2243)

I see several post that contain the same error as the error that I am receiving, but none are leadi… Read more Sparkexception: Only One Sparkcontext May Be Running In This Jvm (see Spark-2243)

Pyspark Boolean Pivot

I have some data mimicking the following structure: rdd = sc.parallelize( [ (0,1), … Read more Pyspark Boolean Pivot

How To Get Postgres Command 'nth_value' Equivalent In Pyspark Hive Sql?

I was solving this example : https://www.windowfunctions.com/questions/grouping/5 Here, they use Or… Read more How To Get Postgres Command 'nth_value' Equivalent In Pyspark Hive Sql?

Pyspark: Ship Jar Dependency With Spark-submit

I wrote a pyspark script that reads two json files, coGroup them and sends the result to an elastic… Read more Pyspark: Ship Jar Dependency With Spark-submit

Pyspark Hive Context -- Read Table With Utf-8 Encoding

I have a table in hive, And I am reading that table in pyspark df_sprk_df from pyspark import Spark… Read more Pyspark Hive Context -- Read Table With Utf-8 Encoding

How To Run Multi Threaded Jobs In Apache Spark Using Scala Or Python?

I am facing a problem related to concurrency in spark which is stopping me from using it in product… Read more How To Run Multi Threaded Jobs In Apache Spark Using Scala Or Python?

Convert Pyspark Dataframe Column From List To String

I have this PySpark dataframe +-----------+--------------------+ |uuid | test_123 |… Read more Convert Pyspark Dataframe Column From List To String

Saving Dataframe To Parquet Takes Lot Of Time

I have a spark data frame which has around 458MM rows. It was initially an RDD so then I converted … Read more Saving Dataframe To Parquet Takes Lot Of Time

Logistic Regression Pyspark Mllib Issue With Multiple Labels

I am trying to create a LogisticRegression model (LogisticRegressionWithSGD), but its getting an er… Read more Logistic Regression Pyspark Mllib Issue With Multiple Labels

Encountering " Warn Procfsmetricsgetter: Exception When Trying To Compute Pagesize" Error When Running Spark

I installed spark and when trying to run it, I am getting the error: WARN ProcfsMetricsGetter: Exc… Read more Encountering " Warn Procfsmetricsgetter: Exception When Trying To Compute Pagesize" Error When Running Spark

Count Substring In String Column Using Spark Dataframe

I have a Spark dataframe with a column (assigned_products) of type string that contains values such… Read more Count Substring In String Column Using Spark Dataframe

Converting Complex Rdd To A Flatten Rdd With Pyspark

I have the following CSV (sample) id timestamp routeid creationdate parameter… Read more Converting Complex Rdd To A Flatten Rdd With Pyspark