This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
Getting NullPointerException when running creatIndex #488
TakeshiKovacs
started this conversation in
General
Replies: 1 comment
-
@TakeshiKovacs Hyperspace 0.4.0 does not support Spark3. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team
I'm trying to create and index using guidance from the example notebook.
I'm creating a data frame by doing a spark.read.format("delta").load("abfss://somepathinAzure/")
I have an index config like this:
mat_flat_IndexConfig = IndexConfig("mat_flatIndex1", ["someColumn"], ["someOtherColumn"])
hs.createIndex(df, mat_flat_IndexConfig)
The error I get is
Py4JJavaError: An error occurred while calling o577.createIndex.
: java.lang.NullPointerException
I'm not sure what the issue is, possibly where it's trying to store the index?
I did also try setting index llocations to dbfs to try and rule out storage permissions to somethink like this
spark.conf.set("spark.hyperspace.system.path", "/dbfs/FileStore/mat")
But still no dice.
I'm using the library for scala 2.12
com.microsoft.hyperspace:hyperspace-core_2.12:0.4.0
And I'm using databricks runtime 8.3 which has scala 2.12 in it.
Does anyone have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions