Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-409

Fix usage of new HiveConf() and Hive.get() in ml lib

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • ml
    • None

    Description

      We saw new HiveConf() call is costlier : See LENS-408. The following occurrences in ml-lib needs to be looked into to see if they are required.

      lens-ml-lib amareshwari.sr$ git grep 'new HiveConf(' src/main/java/
      src/main/java/org/apache/lens/ml/MLUtils.java:    HIVE_CONF = new HiveConf();
      src/main/java/org/apache/lens/ml/ModelLoader.java:          FileSystem fs = modelPath.getFileSystem(new HiveConf());
      src/main/java/org/apache/lens/ml/spark/algos/BaseSparkAlgo.java:    HiveConf hiveConf = new HiveConf();
      src/main/java/org/apache/lens/ml/spark/algos/KMeansAlgo.java:    HiveConf hiveConf = new HiveConf();
      src/main/java/org/apache/lens/rdd/LensRDDClient.java:  protected static final HiveConf HIVE_CONF = new HiveConf();
      src/main/java/org/apache/lens/server/ml/MLServiceResource.java:    HIVE_CONF = new HiveConf();
      

      Attachments

        Activity

          People

            jaideepdhok Jaideep Dhok
            amareshwari Amareshwari Sriramadasu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: