Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
0 answers
48 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 ...
1 vote
0 answers
35 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 ...
2 votes
0 answers
100 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, ...
0 votes
1 answer
197 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 ...
0 votes
0 answers
384 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 ...
-2 votes
1 answer
56 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
66 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 ...
0 votes
1 answer
597 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 ...
0 votes
1 answer
116 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 ------------------------------------------------...
1 vote
1 answer
203 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 ...
0 votes
1 answer
98 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 ...
0 votes
1 answer
411 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 ...
-1 votes
1 answer
120 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()...
1 vote
1 answer
505 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....
0 votes
1 answer
188 views

I have dataframe which I want to save as multiple xml files. This is my code: employees .repartition(col("first_name")) .write() .option(&...

15 30 50 per page
1
2 3 4 5
...
41

AltStyle によって変換されたページ (->オリジナル) /