Re: error: java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available

2021-08-08 Thread Mich Talebzadeh
.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage1.processNext(Unknown >>>> Source) >>>> at >>>> org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43) >>>> at >>>

Re: error: java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available

2021-08-08 Thread Mich Talebzadeh
> at org.apache.spark.rdd.RDD.iterator(RDD.scala:337) >>> at >>> org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90) >>> at org.apache.spark.scheduler.Task.run(Task.scala:131) >>> at >>> org.apache.spark.executor.Executor$TaskRunner.$ano

Re: error: java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available

2021-08-07 Thread Mich Talebzadeh
e/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) >> at >> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >> at java.base/java.lang.Thread.run(Unknown Source) >> >> So it cannot read the data written &

Re: error: java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available

2021-08-07 Thread Kartik Ohri
Use it at your own risk. Any and all responsibility for any > loss, damage or destruction of data or any other property which may arise > from relying on this email's technical content is explicitly disclaimed. > The author will in no case be liable for any monetary damages arising from > such

Re: error: java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available

2021-08-07 Thread Mich Talebzadeh
eeing the code and the whole stack trace, just a wild guess if > you set the config param for enabling arrow > (spark.sql.execution.arrow.pyspark.enabled)? If not in your code, you > would have to set it in the spark-default.conf. Please note that the > parameter spark.sql.exec

Re: error: java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available

2021-08-07 Thread Artemis User
spark.sql.execution.arrow.enabled is deprecated since Spark 3.0... -- ND On 8/7/21 2:08 PM, Mich Talebzadeh wrote: Hi,  I encounter the error: "java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available" When reading from Google BigQuery (GBQ) t

error: java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available

2021-08-07 Thread Mich Talebzadeh
Hi, I encounter the error: "java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available" When reading from Google BigQuery (GBQ) table using Kubernetes cluster built on debian buster The current debian bustere from the do