File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ RUN <<EOF
306306microdnf update
307307#  procps: required for spark startup scripts
308308#  java-*-openjdk-devel: This is needed by the Spark UI to display process information using jps and jmap
309+ #                        The spark-connect server also needs it to compile auto-generated classes on the fly.
309310#                        Copying just the binaries from the builder stage failed.
310311microdnf install \
311312  gzip \
@@ -318,6 +319,10 @@ microdnf install \
318319microdnf clean all
319320rm -rf /var/cache/yum
320321
322+ #  The base image (java-base) defines this to point to a JRE installation.
323+ #  Spark Connect requires it to point to a JDK installation.
324+ ENV  JAVA_HOME="/usr/lib/jvm/java-${JAVA_VERSION}-openjdk" 
325+ 
321326ln -s /usr/bin/python${PYTHON} /usr/bin/python
322327ln -s /usr/bin/pip-${PYTHON} /usr/bin/pip
323328
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments