[ 
https://issues.apache.org/jira/browse/KNOX-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173956#comment-15173956
 ] 

Philippe Back commented on KNOX-516:
------------------------------------

No problem but I am facing a problem as I added the patch content but due to 
KNOX-526 the approach taken seems to break.

{code}
Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on 
project gateway-service-spark-jobserver: Compilation failure
org/apache/hadoop/gateway/spark/jobserver/SparkJobServerHttpClientDispatch.java:[29,5]
 method does not override or implement a method from a supertype
-> [Help 1]
{code}

I had a look at HiveHttpClientDispatch, which looks deprecated stuff and the 
SparkJobServerHttpClientDispatch follows the same logic.

{code:java}
package org.apache.hadoop.gateway.hive;

import org.apache.hadoop.gateway.dispatch.GatewayDispatchFilter;

import javax.servlet.FilterConfig;
import javax.servlet.ServletException;

/***
 * KNOX-526. Need to keep this class around for backward compatibility of 
deployed
 * topologies. This is required for releases older than Apache Knox 0.6.0
 */
@Deprecated
public class HiveHttpClientDispatch extends GatewayDispatchFilter {

  @Override
  public void init(FilterConfig filterConfig) throws ServletException {
    setDispatch(new HiveDispatch());
    super.init(filterConfig);
  }
}
{code}

Also, there is a 
{code:java}
@Override
    public Set<String> getOutboundResponseExcludeHeaders() {
        return null;
    }
{code}

which isn't in any parent class.

Any details on where things are now done before digging down the rabbit hole?





> Add spark job server as a service to knox gateway
> -------------------------------------------------
>
>                 Key: KNOX-516
>                 URL: https://issues.apache.org/jira/browse/KNOX-516
>             Project: Apache Knox
>          Issue Type: New Feature
>          Components: Server
>    Affects Versions: 0.6.0
>            Reporter: Tony Wang
>              Labels: patch
>             Fix For: Future
>
>         Attachments: KNOX-SPARK-JOBSERVER.patch
>
>
> spark-jobserver (https://github.com/spark-jobserver/spark-jobserver) provides 
> a RESTful interface for submitting and managing Apache Spark jobs, jars, and 
> job contexts.
> This patch adds the spark-jobserver rest api as a service to the knox gateway.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to