I keep getting a "py4j.protocol.Py4JJavaError" when trying to run reconstruct tracks on ArcPro 3.1.
Is anyone familiar with this and know a fix?
Full error:
Traceback (most recent call last):
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\scripts\ga_desktop_reconstructtracks.py", line 41, in <module>
timeBoundarySplitUnit=time_bound_split_unit,
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\Scripts\gautils\utilities.py", line 113, in run_ga_desktop_tool
gax = get_client()
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\Scripts\gautils\utilities.py", line 98, in get_client
return jobclient.JobClient(spark)
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\scripts\ga_spark\local\jobclient.py", line 11, in __init__
self._jgp = spark._sc._gateway.jvm.com.esri.arcgis.gae.desktop.DesktopPythonEnvironment.getJobClient()
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\scripts\ga_spark\local\_launcher.py", line 49, in __getattr__
self._lazy_init()
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\scripts\ga_spark\local\_launcher.py", line 54, in _lazy_init
self._spark = get_or_create()
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\scripts\ga_spark\local\_launcher.py", line 65, in get_or_create
_spark = _initialize_spark()
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Resources\ArcToolbox\scripts\ga_spark\local\_launcher.py", line 212, in _initialize_spark
sc = SparkContext(gateway=gateway)
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Java\runtime\spark\python\lib\pyspark.zip\pyspark\context.py", line 197, in __init__
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Java\runtime\spark\python\lib\pyspark.zip\pyspark\context.py", line 282, in _do_init
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Java\runtime\spark\python\lib\pyspark.zip\pyspark\context.py", line 402, in _initialize_context
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Java\runtime\spark\python\lib\py4j-0.10.9.5-src.zip\py4j\java_gateway.py", line 1585, in __call__
File "c:\users\ianha\appdata\local\programs\arcgis\pro\Java\runtime\spark\python\lib\py4j-0.10.9.5-src.zip\py4j\protocol.py", line 326, in get_return_value
py4j.protocol.Py4JJavaError: An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext.
: org.apache.spark.SparkException: Invalid Spark URL: spark://HeartbeatReceiver@Hanna_laptop623:51121
at org.apache.spark.rpc.RpcEndpointAddress$.apply(RpcEndpointAddress.scala:66)
at org.apache.spark.rpc.netty.NettyRpcEnv.asyncSetupEndpointRefByURI(NettyRpcEnv.scala:140)
at org.apache.spark.rpc.RpcEnv.setupEndpointRefByURI(RpcEnv.scala:102)
at org.apache.spark.rpc.RpcEnv.setupEndpointRef(RpcEnv.scala:110)
at org.apache.spark.util.RpcUtils$.makeDriverRef(RpcUtils.scala:36)
at org.apache.spark.executor.Executor.<init>(Executor.scala:244)
at org.apache.spark.scheduler.local.LocalEndpoint.<init>(LocalSchedulerBackend.scala:64)
at org.apache.spark.scheduler.local.LocalSchedulerBackend.start(LocalSchedulerBackend.scala:132)
at org.apache.spark.scheduler.TaskSchedulerImpl.start(TaskSchedulerImpl.scala:222)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:585)
at org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:58)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:247)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:238)
at py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:80)
at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:69)
at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:182)
at py4j.ClientServerConnection.run(ClientServerConnection.java:106)
at java.base/java.lang.Thread.run(Unknown Source)
Failed script Reconstruct Tracks...
Failed to execute (ReconstructTracks).