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

Pradeep Agrawal commented on RANGER-2593:
-----------------------------------------

Which python version are you using ?

> Error during Ranger Installations
> ---------------------------------
>
>                 Key: RANGER-2593
>                 URL: https://issues.apache.org/jira/browse/RANGER-2593
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin, build-infra, Ranger
>            Reporter: Chethan UK
>            Priority: Critical
>
> Unable to install Apache Ranger
>  
> RANGER_INSTALL_DIR='/usr/lib/ranger'
>  
> pushd "${RANGER_INSTALL_DIR}/ranger-admin" && ./set_globals.sh && ./setup.sh
> ```bash
> Creating new core 'ranger_audits' using command:
> [http://localhost:8983/solr/admin/cores?action=CREATE&name=ranger_audits&instanceDir=ranger_audits]
>  
> {
>   "responseHeader":
> {     "status":0,     "QTime":2614}
> ,
>   "core":"ranger_audits"}
>  
>  
> + pushd /usr/lib/ranger/ranger-admin
> /usr/lib/ranger/ranger-admin /usr/lib/ranger
> + ./set_globals.sh
> [2019/09/26 10:58:04]:  [I] Soft linking /etc/ranger/admin/conf to 
> ews/webapp/WEB-INF/classes/conf
> + ./setup.sh
> 2019-09-26 10:58:04,652   --------- Running Ranger PolicyManager Web 
> Application Install Script ---------
> 2019-09-26 10:58:04,654  [I] uname=Linux
> 2019-09-26 10:58:04,657  [I] hostname=cluster-ranger-m
> 2019-09-26 10:58:04,663  [I] DB_FLAVOR=MYSQL
> 2019-09-26 10:58:04,666  [I] Audit source=solr
> 2019-09-26 10:58:04,670  [I] Checking distribution name..
> 2019-09-26 10:58:04,679  [I] Found distribution : PRETTY_NAME="Debian
> 2019-09-26 10:58:04,680  [I] check if command 
> /usr/lib/jvm/java-8-openjdk-amd64/bin/java exists
> 2019-09-26 10:58:04,682  [I] '/usr/lib/jvm/java-8-openjdk-amd64/bin/java' 
> command found
> ./setup.sh: line 325: bc: command not found
> ./setup.sh: line 325: [: -eq: unary operator expected
> 2019-09-26 10:58:04,756  [I] Checking MYSQL CONNECTOR FILE : 
> /usr/share/java/mysql-connector-java.jar
> 2019-09-26 10:58:04,757  [I] MYSQL CONNECTOR FILE : 
> /usr/share/java/mysql-connector-java.jar file found
> 2019-09-26 10:58:04,760  [I] Setting up UNIX user : ranger and group: ranger
> 2019-09-26 10:58:04,766  [I] the ranger user already exists and belongs to 
> group ranger
> 2019-09-26 10:58:04,768  [I] Setting up UNIX user : ranger and group: ranger 
> DONE
> 2019-09-26 10:58:04,769  [I] Setting up installation files and directory
> 2019-09-26 10:58:04,774  [I] Creating 
> /usr/lib/ranger/ranger-admin/ews/webapp/WEB-INF/classes/lib
> 2019-09-26 10:58:04,778  [I] Setting up init.d
> 2019-09-26 10:58:04,782  [I] Creating script S88ranger-admin/K90ranger-admin 
> in /etc/rc2.d directory ....
> 2019-09-26 10:58:04,786  [I] Creating script S88ranger-admin/K90ranger-admin 
> in /etc/rc3.d directory ....
> 2019-09-26 10:58:04,798  [I] Setting up installation files and directory DONE
> 2019-09-26 10:58:04,821  [I] /usr/lib/ranger/ranger-admin/ews/webapp folder 
> found
> 2019-09-26 10:58:04,823  [I] 
> db/mysql/optimized/current/ranger_core_db_mysql.sql file found
> 2019-09-26 10:58:04,825  [I] Copying MYSQL Connector to 
> /usr/lib/ranger/ranger-admin/ews/webapp/WEB-INF/lib
> 2019-09-26 10:58:04,830  [I] Copying MYSQL Connector to 
> /usr/lib/ranger/ranger-admin/ews/webapp/WEB-INF/lib DONE
> 2019-09-26 10:58:04,832  [I] check if command python exists
> 2019-09-26 10:58:04,833  [I] 'python' command found
>   File "db_setup.py", line 192
>     def is_new_install(xa_db_host, db_user, db_password, db_name):
>                                                                  ^
> TabError: inconsistent use of tabs and spaces in indentation
> 2019-09-26 10:58:04,856  [E] validatePassword(). Password for rangertagsync 
> user cannot be blank
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to