Member since
08-27-2022
5
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1864 | 11-21-2023 12:14 AM |
11-24-2023
04:15 AM
Hi Community, After enabling the ssl for knox. Restarting of knox service failed with below error: stderr:
2023-11-24 11:33:40,140 - Audit directory creation in HDFS for KNOX Ranger plugin failed with error:
Execution of 'hadoop --config /usr/odp/3.2.2.0-1/hadoop/conf jar /var/lib/ambari-agent/lib/fast-hdfs-resource.jar /var/lib/ambari-agent/tmp/hdfs_resources_1700825619.12.json' returned 255. SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/odp/3.2.2.0-1/hadoop/lib/slf4j-reload4j-1.7.35.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/odp/3.2.2.0-1/hadoop-hdfs/lib/slf4j-reload4j-1.7.35.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/odp/3.2.2.0-1/tez/lib/slf4j-reload4j-1.7.35.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory]
JAR does not exist or is not a normal file: /var/lib/ambari-agent/lib/fast-hdfs-resource.jar
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/ODP/3.0/services/KNOX/package/scripts/setup_ranger_knox.py", line 60, in setup_ranger_knox
params.HdfsResource(None, action="execute")
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 686, in action_execute
self.get_hdfs_resource_executor().action_execute(self)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 169, in action_execute
logoutput=logoutput,
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
returns=self.resource.returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of 'hadoop --config /usr/odp/3.2.2.0-1/hadoop/conf jar /var/lib/ambari-agent/lib/fast-hdfs-resource.jar /var/lib/ambari-agent/tmp/hdfs_resources_1700825619.12.json' returned 255. SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/odp/3.2.2.0-1/hadoop/lib/slf4j-reload4j-1.7.35.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/odp/3.2.2.0-1/hadoop-hdfs/lib/slf4j-reload4j-1.7.35.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/odp/3.2.2.0-1/tez/lib/slf4j-reload4j-1.7.35.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory]
JAR does not exist or is not a normal file: /var/lib/ambari-agent/lib/fast-hdfs-resource.jar
2023-11-24 11:36:14,985 - Knox Repository creation failed in Ranger admin
Traceback (most recent call last):
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 999, in restart
self.status(env)
File "/var/lib/ambari-agent/cache/stacks/ODP/3.0/services/KNOX/package/scripts/knox_gateway.py", line 174, in status
check_process_status(status_params.knox_pid_file)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/check_process_status.py", line 43, in check_process_status
raise ComponentIsNotRunning()
ComponentIsNotRunning
The above exception was the cause of the following exception:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/ODP/3.0/services/KNOX/package/scripts/knox_gateway.py", line 215, in
KnoxGateway().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
method(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 1010, in restart
self.start(env, upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/stacks/ODP/3.0/services/KNOX/package/scripts/knox_gateway.py", line 145, in start
not_if=no_op_test
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
returns=self.resource.returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/odp/current/knox-server/bin/gateway.sh start' returned 1. Starting Gateway failed. Regards, MR_KD
... View more
Labels:
- Labels:
-
Apache Knox
11-22-2023
07:09 AM
Hi @udeshmukh , Above mentioned solution doesn't work for me as the things are in place. Please suggest anything else. Thanks, MR_KD
... View more
11-21-2023
12:14 AM
Hi @DianaTorres, I have seen below error in the logs: ERROR: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user 'ambari-qa' (action=create). After providing the permissions to ambari-qa in Ranger hbase policy, service checks has been completed successfully. RCA: ambari-qa user is the super user and should have sufficient permissions. Thanks, MR_KD
... View more
11-03-2023
06:39 AM
Hbase service check is failing with below error: ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2829)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:2085)
at org.apache.hadoop.hbase.master.MasterRpcServices.createTable(MasterRpcServices.java:706)
at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:392)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:359)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:339)
For usage try 'help "create"'
Took 9.2549 seconds
hbase:025:0> put 'ambarismoketest','row01','family:col01','id620aaa55_date300323'
ERROR: Unknown table ambarismoketest!
For usage try 'help "put"'
Took 0.0754 seconds
hbase:026:0> scan 'ambarismoketest'
ROW COLUMN+CELL
ERROR: Unknown table ambarismoketest!
For usage try 'help "scan"'
Took 0.0162 seconds
hbase:027:0> exithbase:027:0>
/usr/odp/3.2.2.0-1/hadoop/libexec/hadoop-functions.sh: line 2366: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution
/usr/odp/3.2.2.0-1/hadoop/libexec/hadoop-functions.sh: line 2461: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution
SLF4J: Class path contains multiple SLF4J bindings.
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
For Reference, please visit: http://hbase.apache.org/2.0/book.html#shell
Version 2.4.11.3.2.2.0-1, rUnknown, Mon Sep 4 12:13:14 CEST 2023
Took 0.0043 seconds
hbase:001:0> scan 'ambarismoketest'
ROW COLUMN+CELL
ERROR: Unknown table ambarismoketest!
For usage try 'help "scan"'
Took 0.5639 seconds
hbase:002:0>
Looking for id620aaa55_date300323
/usr/odp/3.2.2.0-1/hadoop/libexec/hadoop-functions.sh: line 2366: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution
/usr/odp/3.2.2.0-1/hadoop/libexec/hadoop-functions.sh: line 2461: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory]
hbase:001:0>
hbase:002:0> #
hbase:003:0> #
hbase:004:0> # Licensed to the Apache Software Foundation (ASF) under one
hbase:005:0> # or more contributor license agreements. See the NOTICE file
hbase:006:0> # distributed with this work for additional information
hbase:007:0> # regarding copyright ownership. The ASF licenses this file
hbase:008:0> # to you under the Apache License, Version 2.0 (the
hbase:009:0> # "License"); you may not use this file except in compliance
hbase:010:0> # with the License. You may obtain a copy of the License at
hbase:011:0> #
hbase:012:0> # http://www.apache.org/licenses/LICENSE-2.0
hbase:013:0> #
hbase:014:0> # Unless required by applicable law or agreed to in writing,
hbase:015:0> # software distributed under the License is distributed on an
hbase:016:0> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
hbase:017:0> # KIND, either express or implied. See the License for the
hbase:018:0> # specific language governing permissions and limitations
hbase:019:0> # under the License.
hbase:020:0> #
hbase:021:0> #
hbase:022:0> disable 'ambarismoketest'
ERROR: Table ambarismoketest does not exist.
For usage try 'help "disable"'
Took 0.7115 seconds
hbase:023:0> drop 'ambarismoketest'
ERROR: Table ambarismoketest does not exist.
For usage try 'help "drop"'
Took 0.0188 seconds
hbase:024:0> create 'ambarismoketest','family'
Command failed after 1 tries
... View more
Labels:
- Labels:
-
Apache HBase
11-03-2023
06:08 AM
@manish1 This solution doesn't work for me. Any other suggestion?
... View more