You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Jarek Jarcec Cecho (JIRA)" <ji...@apache.org> on 2014/10/25 17:07:33 UTC

[jira] [Commented] (SQOOP-1623) Sqoop2: Derive the correct Client version for sqoop

    [ https://issues.apache.org/jira/browse/SQOOP-1623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14184120#comment-14184120 ] 

Jarek Jarcec Cecho commented on SQOOP-1623:
-------------------------------------------

When you're running Sqoop client from the same build, then yes the version will be the same as server as all libraries have been build at the same time. However client is doing a local resolution, check it out in the [source code|https://github.com/apache/sqoop/blob/sqoop2/shell/src/main/java/org/apache/sqoop/shell/ShowVersionFunction.java#L93]. Just try to run client from different build and you'll get different versions.

> Sqoop2: Derive the correct Client version for sqoop
> ---------------------------------------------------
>
>                 Key: SQOOP-1623
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1623
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Veena Basavaraj
>            Assignee: Veena Basavaraj
>             Fix For: 1.99.4
>
>
> Currently the sqoop client version is the same as the server version and it is not correct.
> The client and server can be release independently and hence they can be different.
> saveVersion.sh equivalent is required for the sqoop client as well
> Before
> {code}
> {
> revision: "52d5446af0cb63b739c9773efe1d2534ebe20100",
> protocols: [
> "1"
> ],
> date: "Fri Oct 24 08:09:24 PDT 2014",
> user: "vbasavaraj",
> url: "git://vbasavaraj.local/Users/vbasavaraj/Projects/sqoop2/common",
> version: "2.0.0-SNAPSHOT"
> }
> {code}
> FROM shell
> {code}
> sqoop:000> show version -all 
> client version:
>   Sqoop 2.0.0-SNAPSHOT revision 52d5446af0cb63b739c9773efe1d2534ebe20100 
>   Compiled by vbasavaraj on Fri Oct 24 08:09:24 PDT 2014
> server version:
>   Sqoop 2.0.0-SNAPSHOT revision 52d5446af0cb63b739c9773efe1d2534ebe20100 
>   Compiled by vbasavaraj on Fri Oct 24 08:09:24 PDT 2014
> Protocol version:
>   [1]
> sqoop:000> 
> {code}



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