jongyoul commented on code in PR #4524:
URL: https://github.com/apache/zeppelin/pull/4524#discussion_r1037834518


##########
alluxio/src/main/java/org/apache/zeppelin/alluxio/AlluxioInterpreter.java:
##########
@@ -74,19 +74,25 @@ public AlluxioInterpreter(Properties property) {
 
     alluxioMasterHostname = property.getProperty(ALLUXIO_MASTER_HOSTNAME);
     alluxioMasterPort = property.getProperty(ALLUXIO_MASTER_PORT);
+
+
+  }
+
+  private Stream<String> filteredProperties(String prefix) {
+    return properties.stringPropertyNames().stream().filter(propertyKey -> 
propertyKey.startsWith(prefix));
   }
 
   @Override
   public void open() {
     logger.info("Starting Alluxio shell to connect to " + 
alluxioMasterHostname +
         " on port " + alluxioMasterPort);
+    // Setting the extra parameters being set in the interpreter config 
starting with alluxio
+    filteredProperties("alluxio.").forEach(x->System.setProperty(x, 
properties.getProperty(x)));

Review Comment:
   I'm not sure why our checkstyle couldn't check it but, 
   ```suggestion
       filteredProperties("alluxio.").forEach(x -> System.setProperty(x, 
properties.getProperty(x)));
   ```



-- 
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: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to