Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
52 views

I'm using Spark java with below dependency, and I'm trying to make one API endpoint to receive an file using multipart file, Below is the code attached, I've tried multiple ways to do that, but ...
Rochit Aggarwal's user avatar
1 vote
0 answers
40 views

I Want to listen to a Kafka-Topic. Every event on that topic represents that an entry of my S3 Bucket can be deleted. I've got the following Code to read the Events from my Topic: private static ...
Kleifker's user avatar
2 votes
0 answers
109 views

I evaluate Spark 4 try_variant_get method handling variant type data. First I make sql statements examples. CREATE TABLE family ( id INT, data VARIANT ); INSERT INTO family (id, data) VALUES (1, ...
Joseph Hwang's user avatar
  • 1,433
0 votes
1 answer
202 views

I try to generate user-defined log file on spark 4.0. OS : Windows 11 Spark : spark-4.0.0-preview2-bin-hadoop3 First I make log4j2.properties file on %SPARK_HOME%\conf folder. rootLogger.level = info ...
Joseph Hwang's user avatar
  • 1,433
0 votes
0 answers
408 views

I am trying to run one of my methods which has - spark.sql("DROP TABLE IF EXISTS " + dbNameString + "." + tableNameString) When I am running the method, the code breaks on the ...
ujjawal's user avatar
-2 votes
1 answer
58 views

I am trying to bundle a spark java app in maven, any idea? I've used the maven-compiler plugin but no luck, the dependencies are not loaded. <plugin> <groupId>...
Johann's user avatar
  • 476
0 votes
1 answer
89 views

I'm trying to handle all exception (exception handler) for SparkJava I am currently using try/catch blocks in each endpoint but that approach doesn't scale properly. Something that can handle ...
Carmen Camacho's user avatar
0 votes
1 answer
627 views

I have a usecase where I have streaming dataset like mobile number ,starttime and call duration. I need to do group by on mobile number and sort the group based on starttime and filter out the calls ...
Harsha's user avatar
  • 15
0 votes
1 answer
118 views

I used geoscan libraries on Azure Databricks. However, when I configured for my task, I got this error. `TypeError: 'JavaPackage' object is not callable ------------------------------------------------...
Kunagisa Tomo's user avatar
1 vote
1 answer
216 views

I was requested to look into using Apache Spark's MemoryStream to simulate a Kafka stream in a Java Spring Boot service. The documentation / online community is a bit small on this topic so I am ...
frlzjosh's user avatar
  • 464
0 votes
1 answer
109 views

I discovered by accident that in a spring boot project I didn't have to bind argument in a query like the one below. @SqlQuery(""" select id, name from organisations ...
Thomas Sundberg's user avatar
0 votes
1 answer
422 views

I have an http server, and it uses sessions, but every time I send a request from okhttp the server creates a new session. The server uses jetty with sparkjava. In a browser it works normally, and the ...
Denis's user avatar
  • 39
-1 votes
1 answer
128 views

Spark Java sum is giving incorrect value Java sample code is as below List<Double> points = Arrays.asList(-6221.4, 6380.46); Dataset<Row> dt = spark.createDataset(points, Encoders.DOUBLE()...
Shyam's user avatar
  • 9
1 vote
1 answer
511 views

I use spark-3.4.1-hadoop3 on windows 11. And I try to generate the schema to pass into from_csv function parameter. Belows are my codes. import org.apache.spark.sql.Column; import org.apache.spark.sql....
Joseph Hwang's user avatar
  • 1,433
0 votes
1 answer
191 views

I have dataframe which I want to save as multiple xml files. This is my code: employees .repartition(col("first_name")) .write() .option(&...
Nemanja's user avatar
  • 3,769

15 30 50 per page
1
2 3 4 5
41