zeroflag opened a new pull request, #785:
URL: https://github.com/apache/knox/pull/785

   ## What changes were proposed in this pull request?
   
   (Please fill in changes proposed in this fix)
   
   ## How was this patch tested?
   
   gateway-site.xml
   
   ```xml
   <property>
       <name>gateway.cloudera.manager.descriptors.monitor.interval</name>
       <value>5000</value>
   </property>
   ```
   
   Create a descriptor + topology via hadoop xml resource.
   
   ```xml
    <configuration>
       <property>
           <name>topology3</name>
           <value>
               providerConfigRef=prov#
               app:knoxauth:param1.name=param1.value#
               app:admin-ui#
               HIVE:url=http://localhost:456#
               HIVE:version=1.0#
               HIVE:httpclient.connectionTimeout=5m#
               HIVE:httpclient.socketTimeout=100m
           </value>
       </property>
       <property>
           <name>providerConfigs:prov</name>
           <value>any</value>
       </property>
   </configuration>
   ```
   
   Delete descriptor (+topology):
   
   ```xml
   <configuration>
       <property>
           <name>topology3</name>
           <value>
               remove
           </value>
       </property>
       <property>
           <name>providerConfigs:prov</name>
           <value>any</value>
       </property>
   </configuration>
   ```
   
   Check logs + file system
   
   ```
   2023-08-15 14:49:50,131  INFO  knox.gateway 
(HadoopXmlResourceMonitor.java:processDeleted(123)) - Deleting file 
/Users/attilamagyar/development/test/conf/topologies/topology3.xml
   2023-08-15 14:49:50,131  INFO  knox.gateway 
(HadoopXmlResourceMonitor.java:processDeleted(123)) - Deleting file 
/Users/attilamagyar/development/test/conf/descriptors/topology3.json
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to