-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with spark-excel jar #344
Comments
You definitely need double backslashes |
what is the latest version of the Jar that is available in maven central please ? Also Does it compatible with Spark 3.0.1 and what is the scala version I should use ? |
Have you manually added the jar to the project? |
It seems that, the latest issue is about the dependency Jars. Please take a look and feel free to reopen this ticket in case of further issue. |
Hi ,
I am using the below format to read multitab , xlsx file .
I am using spark version 3.0.1 and scala 2.11 and spark-excel_2.11-0.8.2.jar .
Previously i tried with 2.13.1 , but failed as well
snippet :
val df_cmdb = spark
.read
.format("com.crealytics.spark.excel")
.option("dataAddress", "'CMDB'!B3:C35") // Optional, default: "A1"
.option("header", "true") // Required
.option("treatEmptyValuesAsNulls", "false") // Optional, default: true
.option("usePlainNumberFormat", "false") // Optional, default: false, If true, format the cells without rounding and scientific notations
.option("inferSchema", "false") // Optional, default: false
.option("addColorColumns", "true") // Optional, default: false
.option("timestampFormat", "MM-dd-yyyy HH:mm:ss") // Optional, default: yyyy-mm-dd hh:mm:ss[.fffffffff]
.option("maxRowsInMemory", 20) // Optional, default None. If set, uses a streaming reader which can help with big files
.option("excerptSize", 10) // Optional, default: 10. If set and if schema inferred, number of rows to infer schema from
//.option("workbookPassword", "pass") // Optional, default None. Requires unlimited strength JCE for older JVMs
//.schema(myCustomSchema) // Optional, default: Either inferred schema, or all columns are Strings
.load("C:\Project\MSF_RP_SCES_Backup_Report_PWC_20210202.xlsx")
Error : Exception in thread "main" java.lang.IllegalArgumentException: Parameter "location" is missing in options.
what should be version of scala and jar file I should use ?
can you please also provide the location of the jar .
many thanks
The text was updated successfully, but these errors were encountered: