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

ASF GitHub Bot commented on MAPREDUCE-7535:
-------------------------------------------

p-szucs commented on code in PR #8298:
URL: https://github.com/apache/hadoop/pull/8298#discussion_r2906104174


##########
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/jsonprovider/JsonProviderFeature.java:
##########
@@ -28,6 +28,7 @@ public class JsonProviderFeature implements Feature {
   public boolean configure(FeatureContext context) {
     //Auto discovery should be disabled to ensure the custom providers will be 
used
     context.property(CommonProperties.MOXY_JSON_FEATURE_DISABLE, true);
+    context.property("jersey.config.jsonFeature", "JsonProviderFeature");

Review Comment:
   Thanks for the review @brumi1024,  fixed the property





> Setting the JSON provider to the customized one for MR webapp
> -------------------------------------------------------------
>
>                 Key: MAPREDUCE-7535
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-7535
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mapreduce-client
>    Affects Versions: 3.4.2
>            Reporter: Peter Szucs
>            Assignee: Peter Szucs
>            Priority: Major
>              Labels: pull-request-available
>
> After a customized Moxy JSON provider has been introduced in the MR AM Webapp 
> in MAPREDUCE-7530 we need to set "jersey.config.jsonFeature" property to the 
> customized JsonProviderFeature to prevent automatic discovery of legacy 
> providers like EntityFilteringFeature.
>  
> As I could see the jersey-provided moxy in jersey media module also has this 
> configuration, but we are using native moxy in Hadoop, so it is necessary to 
> configure this setting explicitly



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to