You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Himanshu Gahlaut (JIRA)" <ji...@apache.org> on 2015/01/03 08:50:35 UTC

[jira] [Issue Comment Deleted] (LENS-123) Ability to load different instances of same driver class

     [ https://issues.apache.org/jira/browse/LENS-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Himanshu Gahlaut updated LENS-123:
----------------------------------
    Comment: was deleted

(was: In this scheme of things properties file will look like below:

{code}
<configuration>
  
  <property>
    <name>lens.driver.hive.names</name>
    <value>dc1,dc2</value>  
  </property>

  <property>
    <name>lens.driver.hive.host.dc1</name>
    <value>abcd4101.grid.dc1.mycompany.com</value>
  </property>

  <property>
    <name>lens.driver.hive.storages.dc1</name>
    <value>dc1,local,dc1_pie</value>
  </property>

  <property>
    <name>lens.driver.hive.host.dc2</name>
    <value>abcd4101.grid.dc2.mycompany.com</value>
  </property>

  <property>
    <name>lens.driver.hive.storages.dc2</name>
    <value>dc2,local,dc2_pie</value>
  </property>

</configuration>

{code}

which is less readable than the compact form

{code:xml}
<configuration>
  
  <driver name="dc1" type="hive">
    <host>abcd4101.grid.dc1.mycompany.com</host>
    <storages>dc1,local,dc1_pie</storages>
  </driver>

  <driver name="dc2" type="hive">
    <host>abcd4101.grid.dc2.mycompany.com</host>
    <storages>dc2,local,dc2_pie</storages>
  </driver>

</configuration>

{code}
One solution doesn't fit all. Different languages can be used to define different nature of configs. Consistency is to achieve maintainability.  If consistency is coming in way of maintainability, then I'm not sure how beneficial will it be to stick with consistency.)

> Ability to load different instances of same driver class
> --------------------------------------------------------
>
>                 Key: LENS-123
>                 URL: https://issues.apache.org/jira/browse/LENS-123
>             Project: Apache Lens
>          Issue Type: Improvement
>          Components: server
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Himanshu Gahlaut
>             Fix For: 2.0
>
>
> Currently we are loading only one driver instance per class. We should be able to load multiple different instances of a driver class.
> For example, There can be multiple HiveDrivers talking to different HiveServers sitting on each colo. Or different JDBCDrivers talking to different dbs.



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