TypeError: 'JavaPackage' object is not callable
mdrijwan123 opened this issue · comments
Hey Thankyou for this spark integration.
I am getting one issue as I am trying to run this on databricks and I am getting above error:
I am installing packages and using module as:
%pip install pyspark-hnsw==1.1.0 findspark
hnsw = HnswSimilarity(identifierCol='product_id', queryIdentifierCol='user_id', featuresCol='Embedding_items',
distanceFunction='cosine', numPartitions=10, excludeSelf=True, k = 10)
Running above I am getting below error:
TypeError: 'JavaPackage' object is not callable
I am using spark: 3.4.1 and using DBR 13.3 LTS.
But above code running good in Colab. Please let me know if you have some information for fix. Thankyou.
Awesome, Thankyou so much.