Member since
12-11-2015
213
Posts
87
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3218 | 12-20-2016 03:27 PM | |
12808 | 07-26-2016 06:38 PM |
10-02-2017
07:09 PM
@Jay SenSharma Sending you last 2 days of log trace of ambari-server.log file. It's a zip fileambari.zip
... View more
10-02-2017
06:58 PM
@Jay SenSharma ambari-server log file is too big to be attached here. How you want me to deliver ?
... View more
10-02-2017
06:11 PM
Great, This does seem to work.. Thanks prakash
... View more
10-02-2017
01:00 PM
@Jay SenSharma This is the last 50 lines from ambari-server log [centos@hdp-m:/var/log/ambari-server ] $ tail -50 ambari-server.log
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:212)
at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:201)
at org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList.java:139)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:984)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1045)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
01 Oct 2017 23:20:07,110 INFO [pool-17-thread-1] MetricSinkWriteShardHostnameHashingStrategy:42 - Calculated collector shard hdp-m.asotc based on hostname: hdp-m.asotc
02 Oct 2017 00:30:10,487 INFO [pool-17-thread-1] MetricSinkWriteShardHostnameHashingStrategy:42 - Calculated collector shard hdp-m.asotc based on hostname: hdp-m.asotc
02 Oct 2017 01:40:14,577 INFO [pool-17-thread-1] MetricSinkWriteShardHostnameHashingStrategy:42 - Calculated collector shard hdp-m.asotc based on hostname: hdp-m.asotc
02 Oct 2017 02:50:18,344 INFO [pool-17-thread-1] MetricSinkWriteShardHostnameHashingStrategy:42 - Calculated
... View more
10-02-2017
12:57 PM
Hive view log: This is the last 50 lines of text from the recent hiveserver2.log.2017-10-01 er-Pool: Thread-40
2017-10-01 23:54:23,382 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:release(309)) - We are resetting the hadoop caller context for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:54:23,401 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:acquire(295)) - We are setting the hadoop caller context to be353dbf-a100-4c3b-85a9-f2e1f707e423 for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:54:23,401 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:release(309)) - We are resetting the hadoop caller context for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:54:23,450 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:acquire(295)) - We are setting the hadoop caller context to be353dbf-a100-4c3b-85a9-f2e1f707e423 for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:54:23,450 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:acquire(295)) - We are setting the hadoop caller context to be353dbf-a100-4c3b-85a9-f2e1f707e423 for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:54:23,476 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:release(309)) - We are resetting the hadoop caller context for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:57:23,693 INFO [HiveServer2-Handler-Pool: Thread-40]: thrift.ThriftCLIService (ThriftCLIService.java:OpenSession(294)) - Client protocol version: HIVE_CLI_SERVICE_PROTOCOL_V8
2017-10-01 23:57:23,696 INFO [HiveServer2-Handler-Pool: Thread-40]: metastore.ObjectStore (ObjectStore.java:initialize(294)) - ObjectStore, initialize called
2017-10-01 23:57:23,726 INFO [HiveServer2-Handler-Pool: Thread-40]: metastore.MetaStoreDirectSql (MetaStoreDirectSql.java:<init>(140)) - Using direct SQL, underlying DB is MYSQL
2017-10-01 23:57:23,727 INFO [HiveServer2-Handler-Pool: Thread-40]: metastore.ObjectStore (ObjectStore.java:setConf(277)) - Initialized ObjectStore
2017-10-01 23:57:23,858 INFO [HiveServer2-Handler-Pool: Thread-40]: session.SessionState (SessionState.java:createPath(613)) - Created local directory: /tmp/94104db2-4ff2-40b1-97eb-e6056fd7e376_resources
2017-10-01 23:57:23,876 INFO [HiveServer2-Handler-Pool: Thread-40]: session.SessionState (SessionState.java:createPath(613)) - Created HDFS directory: /tmp/hive/anonymous/94104db2-4ff2-40b1-97eb-e6056fd7e376
2017-10-01 23:57:23,883 INFO [HiveServer2-Handler-Pool: Thread-40]: session.SessionState (SessionState.java:createPath(613)) - Created local directory: /tmp/hive/94104db2-4ff2-40b1-97eb-e6056fd7e376
2017-10-01 23:57:23,905 INFO [HiveServer2-Handler-Pool: Thread-40]: session.SessionState (SessionState.java:createPath(613)) - Created HDFS directory: /tmp/hive/anonymous/94104db2-4ff2-40b1-97eb-e6056fd7e376/_tmp_space.db
2017-10-01 23:57:23,908 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:setOperationLogSessionDir(248)) - Operation log session directory is created: /tmp/hive/operation_logs/94104db2-4ff2-40b1-97eb-e6056fd7e376
2017-10-01 23:57:24,151 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:acquire(295)) - We are setting the hadoop caller context to 94104db2-4ff2-40b1-97eb-e6056fd7e376 for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:57:24,152 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:release(309)) - We are resetting the hadoop caller context for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:57:24,191 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:acquire(295)) - We are setting the hadoop caller context to 94104db2-4ff2-40b1-97eb-e6056fd7e376 for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:57:24,192 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:release(309)) - We are resetting the hadoop caller context for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:57:24,240 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:acquire(295)) - We are setting the hadoop caller context to 94104db2-4ff2-40b1-97eb-e6056fd7e376 for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:57:24,240 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:acquire(295)) - We are setting the hadoop caller context to 94104db2-4ff2-40b1-97eb-e6056fd7e376 for thread HiveServer2-Handler-Pool: Thread-40
2017-10-01 23:57:24,284 INFO [HiveServer2-Handler-Pool: Thread-40]: session.HiveSessionImpl (HiveSessionImpl.java:release(309)) - We are resetting the hadoop caller context for thread HiveServer2-Handler-Pool: Thread-40
... View more
10-02-2017
12:45 PM
@kalai selvan. I don't think space is a problem. [centos@hdp-m:/usr/hdp/ssl ] $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 160G 73G 88G 46% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 12K 7.8G 1% /dev/shm
tmpfs 7.8G 788M 7.0G 10% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
tmpfs 1.6G 0 1.6G 0% /run/user/1000
tmpfs 1.6G 0 1.6G 0% /run/user/1011
tmpfs 1.6G 0 1.6G 0% /run/user/1003
tmpfs 1.6G 0 1.6G 0% /run/user/1008
tmpfs 1.6G 0 1.6G 0% /run/user/0
... View more
10-02-2017
12:44 PM
Thanks @Jay SenSharma. Can you please take a look at the following directory structure and advise which ones I need to remove. [centos@hdp-m:/usr/hdp ] $ ls -l
total 24
drwxr-xr-x. 30 root root 4096 Feb 23 2016 2.3.4.0-3485
drwxr-xr-x. 2 root root 4096 Feb 15 2016 current
-rw-r--r--. 1 root root 4924 Feb 17 2016 samit-ca.crt
-rw-r--r--. 1 root root 1927 Feb 17 2016 samit.crt
-rw-r--r--. 1 root root 1704 Feb 17 2016 samit.key
drwxr-xr-x. 2 root root 88 Feb 17 2016 ssl
[centos@hdp-m:/usr/hdp ] $ cd ssl
[centos@hdp-m:/usr/hdp/ssl ] $ ls
ambari-server-truststore samit-ca.crt samit.crt samit.key
[centos@hdp-m:/usr/hdp/ssl ] $ cd ssl
-bash: cd: ssl: No such file or directory
[centos@hdp-m:/usr/hdp/ssl ] $ pwd
/usr/hdp/ssl
[centos@hdp-m:/usr/hdp/ssl ] $ ls -l
total 20
-rw-r--r--. 1 root root 1451 Feb 17 2016 ambari-server-truststore
-rw-r--r--. 1 root root 4924 Feb 17 2016 samit-ca.crt
-rw-r-----. 1 root root 1927 Feb 17 2016 samit.crt
-rw-r--r--. 1 root root 1704 Feb 17 2016 samit.key
... View more
10-02-2017
12:42 PM
Thanks @Jay SenSharma. Not sure which file or directory I need to remove. They may be important. Can you take a look at my directory structure and advise. [centos@hdp-m:/usr/hdp ] $ ls -l
total 24
drwxr-xr-x. 30 root root 4096 Feb 23 2016 2.3.4.0-3485
drwxr-xr-x. 2 root root 4096 Feb 15 2016 current
-rw-r--r--. 1 root root 4924 Feb 17 2016 samit-ca.crt
-rw-r--r--. 1 root root 1927 Feb 17 2016 samit.crt
-rw-r--r--. 1 root root 1704 Feb 17 2016 samit.key
drwxr-xr-x. 2 root root 88 Feb 17 2016 ssl
[centos@hdp-m:/usr/hdp ] $ cd ssl
[centos@hdp-m:/usr/hdp/ssl ] $ ls
ambari-server-truststore samit-ca.crt samit.crt samit.key
[centos@hdp-m:/usr/hdp/ssl ] $ cd ssl
-bash: cd: ssl: No such file or directory
[centos@hdp-m:/usr/hdp/ssl ] $ pwd
/usr/hdp/ssl
[centos@hdp-m:/usr/hdp/ssl ] $ ls -l
total 20
-rw-r--r--. 1 root root 1451 Feb 17 2016 ambari-server-truststore
-rw-r--r--. 1 root root 4924 Feb 17 2016 samit-ca.crt
-rw-r-----. 1 root root 1927 Feb 17 2016 samit.crt
-rw-r--r--. 1 root root 1704 Feb 17 2016 samit.key
... View more
10-02-2017
02:27 AM
How to fix it. Getting this in Hive View. Looked at the similar posting but not very sure what actually needs to be done. Recently upgraded from Ambari 2.2 to 2.5
... View more
Labels:
- Labels:
-
Apache Ambari
10-01-2017
08:30 PM
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in <module>
AfterInstallHook().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 31, in hook
setup_stack_symlinks()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 52, in setup_stack_symlinks
stack_select.select_all(version)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 135, in select_all
Execute(command, only_if = only_if_command)
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.3.4.0-3485 | tail -1`' returned 1. Traceback (most recent call last):
File "/usr/bin/hdp-select", line 378, in <module>
printVersions()
File "/usr/bin/hdp-select", line 235, in printVersions
result[tuple(map(int, versionRegex.split(f)))] = f
ValueError: invalid literal for int() with base 10: 'ssl'
ERROR: set command takes 2 parameters, instead of 1
usage: hdp-select [-h] [<command>] [<package>] [<version>]
Set the selected version of HDP.
positional arguments:
<command> One of set, status, versions, or packages
<package> the package name to set
<version> the HDP version to set
optional arguments:
-h, --help show this help message and exit
-r, --rpm-mode if true checks if there is symlink exists and creates the symlink if it doesn't
Commands:
set : set the package to a specified version
status : show the version of the package
versions : show the currently installed versions
packages : show the individual package names
... View more
Labels: