5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 01:19:38 +08:00

SQOOP-1205. Sqoop2: Provide upgrade guide for end users

(Jarek Jarcec Cecho via Hari Shreedharan)
This commit is contained in:
Hari Shreedharan 2013-09-24 11:26:12 -07:00 committed by Jarek Jarcec Cecho
parent 1549a87979
commit 15c4f80d7a
2 changed files with 51 additions and 1 deletions

View File

@ -0,0 +1,49 @@
.. Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF lANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=======
Upgrade
=======
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.
.. 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.
Upgrading Server
================
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: ::
./bin/sqoop.sh server stop
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.
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``::
org.apache.sqoop.repository.schema.immutable=false
org.apache.sqoop.connector.autoupgrade=true
org.apache.sqoop.framework.autoupgrade=true
When all properties are set, start server using following command::
./bin/sqoop.sh server start
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.
Upgrading Client
================
Client do not require any manual steps during upgrade. Replacing the binaries with updated version is sufficient.

View File

@ -52,6 +52,7 @@ User Documentation
------------------
- `Installation <Installation.html>`_
- `Upgrade <Upgrade.html>`_
- `5 Minutes Demo <Sqoop5MinutesDemo.html>`_
- `Command Line Client <CommandLineClient.html>`_
@ -62,4 +63,4 @@ Developer Guide
- `Development Environment Setup <DevEnv.html>`_
- `Java Client API Guide <ClientAPI.html>`_
- `Developping Connector <ConnectorDevelopment.html>`_
- `REST API Guide <RESTAPI.html>`_
- `REST API Guide <RESTAPI.html>`_