Review Board 1.7.22


SQOOP-1205 Sqoop2: Provide upgrade guide for end users

Review Request #14283 - Created Sept. 21, 2013 and updated

Jarek Cecho
SQOOP-1205
Reviewers
Sqoop
sqoop-sqoop2
I've put together basic instructions.
Generated version seems to be ok.

Diff revision 1 (Latest)

  1. docs/src/site/sphinx/Upgrade.rst: Loading...
  2. docs/src/site/sphinx/index.rst: Loading...
docs/src/site/sphinx/Upgrade.rst
New File

    
   
1
.. Licensed to the Apache Software Foundation (ASF) under one or more

    
   
2
   contributor license agreements.  See the NOTICE file distributed with

    
   
3
   this work for additional information regarding copyright ownership.

    
   
4
   The ASF licenses this file to You under the Apache License, Version 2.0

    
   
5
   (the "License"); you may not use this file except in compliance with

    
   
6
   the License.  You may obtain a copy of the License at

    
   
7

   

    
   
8
       http://www.apache.org/licenses/LICENSE-2.0

    
   
9

   

    
   
10
   Unless required by applicable law or agreed to in writing, software

    
   
11
   distributed under the License is distributed on an "AS IS" BASIS,

    
   
12
   WITHOUT WARRANTIES OR CONDITIONS OF lANY KIND, either express or implied.

    
   
13
   See the License for the specific language governing permissions and

    
   
14
   limitations under the License.

    
   
15

   

    
   
16

   

    
   
17
=======

    
   
18
Upgrade

    
   
19
=======

    
   
20

   

    
   
21
This page describes procedure that you need to take in order to upgrade Sqoop from one release to a higher release. Upgrading both client and server component will be discussed separately.

    
   
22

   

    
   
23
.. note:: Only updates from one Sqoop 2 release to another are covered, starting with upgrades from version 1.99.2. This guide do not contain general information how to upgrade from Sqoop 1 to Sqoop 2.

    
   
24

   

    
   
25
Upgrading Server

    
   
26
================

    
   
27

   

    
   
28
As Sqoop server is using external repository for persisting connection and job objects, this repository needs to be updated in addition to updating the server bits. The capability of performing the upgrade has been built-in to the server, however is disabled by default to avoid any unintentional changes to the repository. You can start the upgrade procedure by stopping the server: ::

    
   
29

   

    
   
30
  ./bin/sqoop.sh server stop

    
   
31

   

    
   
32
It's strongly advised to back up the repository before moving on to next steps. Precise back-up instructions depends on the repository implementation that is in use, please follow the repository owns instructions to back it up.

    
   
33

   

    
   
34
Now you can update server bits. Before starting the server again you will need to enable the auto-upgrade feature that will perform all necessary during Sqoop Server boot up procedure. You need to set following properties in configuration file ``sqoop.properties``::

    
   
35

   

    
   
36
  org.apache.sqoop.repository.schema.immutable=false

    
   
37
  org.apache.sqoop.connector.autoupgrade=true

    
   
38
  org.apache.sqoop.framework.autoupgrade=true

    
   
39

   

    
   
40
When all properties are set, start server using following command::

    
   
41

   

    
   
42
  ./bin/sqoop.sh server start

    
   
43

   

    
   
44
All required actions will be performed automatically during the server bootstrap procedure. It's strongly advised to set all three properties to their original values once the server has been successfully started.

    
   
45

   

    
   
46
Upgrading Client

    
   
47
================

    
   
48

   

    
   
49
Client do not require any manual steps during upgrade. Replacing the binaries with updated version is sufficient.
docs/src/site/sphinx/index.rst
Revision 07e3c473e9964fdc9b39465f9806be5fa6cf1ad6 New Change
 
  1. docs/src/site/sphinx/Upgrade.rst: Loading...
  2. docs/src/site/sphinx/index.rst: Loading...