[ 
https://issues.apache.org/jira/browse/AMBARI-23200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivér Szabó updated AMBARI-23200:
----------------------------------
    Description: 
Added new cli tool for infra solr client:
/usr/lib/ambari-infra-solr-client/migrationHelper.py
{code:java}
Usage: migrationHelper.py [options]

Options:
  -h, --help            show this help message and exit
  -H HOST, --host=HOST  hostname for ambari server
  -P PORT, --port=PORT  port number for ambari server
  -c CLUSTER, --cluster=CLUSTER
                        name cluster
  -s, --ssl             use if ambari server using https
  -u USERNAME, --username=USERNAME
                        username for accessing ambari server
  -p PASSWORD, --password=PASSWORD
                        password for accessing ambari server
  -a ACTION, --action=ACTION
                        backup | restore | migrate
  -f, --force           force index upgrade even if it's the right version
  --index-location=INDEX_LOCATION
                        location of the index backups
  --backup-name=BACKUP_NAME
                        backup name of the index
  --collection=COLLECTION
                        solr collection
  --version=INDEX_VERSION
                        lucene index version for migration (6.6.2 or 7.2.1)
  --request-tries=REQUEST_TRIES
                        number of tries for BACKUP/RESTORE status api calls in
                        the request
  --request-time-interval=REQUEST_TIME_INTERVAL
                        time interval between BACKUP/RESTORE status api calls
                        in the request
  --request-async       skip BACKUP/RESTORE status api calls from the command
  --shared-fs           shared fs for storing backup (will create index
                        location to <path><hostname>)
  --solr-hosts=SOLR_HOSTS
                        comma separated list of solr hosts
  --disable-solr-host-check
                        Disable to check solr hosts are good for the
                        collection backups
  --core-filter=CORE_FILTER
                        core filter for replica folders
{code}


> Infra Solr - utility script to run infra-solr custom commands 
> (migrate/backup/restore)
> --------------------------------------------------------------------------------------
>
>                 Key: AMBARI-23200
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23200
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-infra
>    Affects Versions: 2.7.0
>            Reporter: Olivér Szabó
>            Assignee: Olivér Szabó
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Added new cli tool for infra solr client:
> /usr/lib/ambari-infra-solr-client/migrationHelper.py
> {code:java}
> Usage: migrationHelper.py [options]
> Options:
>   -h, --help            show this help message and exit
>   -H HOST, --host=HOST  hostname for ambari server
>   -P PORT, --port=PORT  port number for ambari server
>   -c CLUSTER, --cluster=CLUSTER
>                         name cluster
>   -s, --ssl             use if ambari server using https
>   -u USERNAME, --username=USERNAME
>                         username for accessing ambari server
>   -p PASSWORD, --password=PASSWORD
>                         password for accessing ambari server
>   -a ACTION, --action=ACTION
>                         backup | restore | migrate
>   -f, --force           force index upgrade even if it's the right version
>   --index-location=INDEX_LOCATION
>                         location of the index backups
>   --backup-name=BACKUP_NAME
>                         backup name of the index
>   --collection=COLLECTION
>                         solr collection
>   --version=INDEX_VERSION
>                         lucene index version for migration (6.6.2 or 7.2.1)
>   --request-tries=REQUEST_TRIES
>                         number of tries for BACKUP/RESTORE status api calls in
>                         the request
>   --request-time-interval=REQUEST_TIME_INTERVAL
>                         time interval between BACKUP/RESTORE status api calls
>                         in the request
>   --request-async       skip BACKUP/RESTORE status api calls from the command
>   --shared-fs           shared fs for storing backup (will create index
>                         location to <path><hostname>)
>   --solr-hosts=SOLR_HOSTS
>                         comma separated list of solr hosts
>   --disable-solr-host-check
>                         Disable to check solr hosts are good for the
>                         collection backups
>   --core-filter=CORE_FILTER
>                         core filter for replica folders
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to