You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Cheng (JIRA)" <ji...@apache.org> on 2009/04/02 02:17:13 UTC
[jira] Created: (CHUKWA-86) Take JDBC driver from environmet
Take JDBC driver from environmet
--------------------------------
Key: CHUKWA-86
URL: https://issues.apache.org/jira/browse/CHUKWA-86
Project: Hadoop Chukwa
Issue Type: Improvement
Reporter: Cheng
Currently JDBC driver is hard coded. Replace with class name from environment. If no driver name found, use default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CHUKWA-86) Take JDBC driver from environmet
Posted by "Cheng (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng reassigned CHUKWA-86:
---------------------------
Assignee: Cheng
> Take JDBC driver from environmet
> --------------------------------
>
> Key: CHUKWA-86
> URL: https://issues.apache.org/jira/browse/CHUKWA-86
> Project: Hadoop Chukwa
> Issue Type: Improvement
> Reporter: Cheng
> Assignee: Cheng
> Attachments: CHUKWA-86-jdbc.patch
>
>
> Currently JDBC driver is hard coded. Replace with class name from environment. If no driver name found, use default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CHUKWA-86) Take JDBC driver from environmet
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Yang updated CHUKWA-86:
----------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
I just committed this, thanks Cheng.
> Take JDBC driver from environmet
> --------------------------------
>
> Key: CHUKWA-86
> URL: https://issues.apache.org/jira/browse/CHUKWA-86
> Project: Hadoop Chukwa
> Issue Type: Improvement
> Reporter: Cheng
> Attachments: CHUKWA-86-jdbc.patch
>
>
> Currently JDBC driver is hard coded. Replace with class name from environment. If no driver name found, use default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CHUKWA-86) Take JDBC driver from environmet
Posted by "Cheng (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng updated CHUKWA-86:
------------------------
Attachment: CHUKWA-86-jdbc.patch
Introduced a new class DriverManagerUtil.
DriverManagerUtil.loadDriver will look up driver name from system environment first. If found, use it. If not, use default.
All old DriverManager.getConnection calls are replaced with DriverManagerUtil.getConnection.
> Take JDBC driver from environmet
> --------------------------------
>
> Key: CHUKWA-86
> URL: https://issues.apache.org/jira/browse/CHUKWA-86
> Project: Hadoop Chukwa
> Issue Type: Improvement
> Reporter: Cheng
> Attachments: CHUKWA-86-jdbc.patch
>
>
> Currently JDBC driver is hard coded. Replace with class name from environment. If no driver name found, use default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-86) Take JDBC driver from environmet
Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694853#action_12694853 ]
Eric Yang commented on CHUKWA-86:
---------------------------------
+1 Looks good.
> Take JDBC driver from environmet
> --------------------------------
>
> Key: CHUKWA-86
> URL: https://issues.apache.org/jira/browse/CHUKWA-86
> Project: Hadoop Chukwa
> Issue Type: Improvement
> Reporter: Cheng
> Attachments: CHUKWA-86-jdbc.patch
>
>
> Currently JDBC driver is hard coded. Replace with class name from environment. If no driver name found, use default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CHUKWA-86) Take JDBC driver from environmet
Posted by "Cheng (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng updated CHUKWA-86:
------------------------
Status: Patch Available (was: Open)
Introduced a new class DriverManagerUtil.
DriverManagerUtil.loadDriver will look up driver name from system environment first. If found, use it. If not, use default. We no longer force user to use mysql driver. It could be any driver or driver wrapper.
All old DriverManager.getConnection calls are replaced with DriverManagerUtil.getConnection. If later we decided to use connection pool, we only need to change one place.
> Take JDBC driver from environmet
> --------------------------------
>
> Key: CHUKWA-86
> URL: https://issues.apache.org/jira/browse/CHUKWA-86
> Project: Hadoop Chukwa
> Issue Type: Improvement
> Reporter: Cheng
> Attachments: CHUKWA-86-jdbc.patch
>
>
> Currently JDBC driver is hard coded. Replace with class name from environment. If no driver name found, use default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.