[
https://issues.apache.org/jira/browse/SQOOP-3055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anna Szonyi updated SQOOP-3055:
-------------------------------
Description:
MYSQL test are using option.setUser(MySQLTestUtils.getcurrentUser()), where
MySQLTestUtils.getCurrentUser() return
System.getenv("USER");
or
..
whoamiArgs[0] = "whoami";
..
p = Runtime.getRuntime().exec(whoamiArgs);
Whereas it should use the userName and userPass as specified if called with -D
parameters.
Currently the tests could only run when using localhost + root.
was:
MYSQL test are using option.setUser(MySQLTestUtils.getcurrentUser()), where
MySQLTestUtils.getCurrentUser() return
System.getenv("USER");
or
..
whoamiArgs[0] = "whoami";
..
p = Runtime.getRuntime().exec(whoamiArgs);
Whereas it should use the userName and userPass as specified if called with -D
parameters.
> SQOOP-3055 MYSQL tests are failing due to the tests ignoring specified
> username, password and dbname, trying to connect to specified host using
> "currentUser"
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SQOOP-3055
> URL: https://issues.apache.org/jira/browse/SQOOP-3055
> Project: Sqoop
> Issue Type: Sub-task
> Reporter: Anna Szonyi
> Fix For: 1.4.7
>
>
> MYSQL test are using option.setUser(MySQLTestUtils.getcurrentUser()), where
> MySQLTestUtils.getCurrentUser() return
> System.getenv("USER");
> or
> ..
> whoamiArgs[0] = "whoami";
> ..
> p = Runtime.getRuntime().exec(whoamiArgs);
> Whereas it should use the userName and userPass as specified if called with
> -D parameters.
> Currently the tests could only run when using localhost + root.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)