Failed 1 action: Table 'HostApplicationMap_Ver2' was not found, got: ApplicationTraceIndex - aws-pinpoint

I made a demo for user pinpiont, but when I start it with docker-compose file then it can not started.
The log information:
org.apache.hadoop.hbase.client.AsyncProcess$BatchErrors.makeException(AsyncProcess.java:297)
ERROR o.a.h.h.c.AsyncProcess : Failed to get region
location

Related

AWS elastic beanstalk deploy always fails (uploading a zipfile)

I upload a new version of my app as a zipfile and click deploy. Then the status changes to severe.
This is the error trace:
WARN
Environment health has transitioned from Info to Degraded. Command failed on all instances. Incorrect application version found on all instances. Expected version "Sample" (deployment 2). Application update failed 10 seconds ago and took 4 minutes.
ERROR
During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
ERROR
Failed to deploy application.
ERROR
Unsuccessful command execution on instance id(s) 'i------'. Aborting the operation.
ERROR
[Instance: i-002326d7ceeba0ea9] Command failed on instance. Return code:
1 Output: nginx: [emerg] no host in upstream ":80" in /etc/nginx/conf.d/elasticbeanstalk-nginx-docker-upstream.conf:
2 nginx: configuration file /etc/nginx/nginx.conf test failed Failed to start nginx, abort deployment.
Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/01flip.sh failed.
For more detail, check /var/log/eb-activity.log using console or EB CLI.
ERROR
Failed to start nginx, abort deployment
/var/log/eb-activity.log
here are errors in this log:
[0mInstalling dependencies from Pipfile.lock (5e00f3)…
Failed to load paths: /bin/sh: 1: /root/.local/share/virtualenvs/app-lp47FrbD/bin/python: not found
...
[2020-05-29T01:51:24.746Z] INFO [11395] - [Application update v1.3.3-1#3/AppDeployStage1/AppDeployEnactHook/00run.sh] : Completed activity. Result:
jq: error (at <stdin>:1): Cannot iterate over null (null)
a2f568b1c255eb9e0fdc6ceebdd29b9ec64b9ab4481a3e1c5bcb11828b0ac526
[2020-05-29T01:51:24.747Z] INFO [11395] - [Application update v1.3.3-1#3/AppDeployStage1/AppDeployEnactHook/01flip.sh] : Starting activity...
[2020-05-29T01:51:26.099Z] INFO [11395] - [Application update v1.3.3-1#3/AppDeployStage1/AppDeployEnactHook/01flip.sh] : Activity execution failed, because: nginx: [emerg] no host in upstream ":80" in /etc/nginx/conf.d/elasticbeanstalk-nginx-docker-upstream.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
Failed to start nginx, abort deployment (ElasticBeanstalk::ExternalInvocationError)
caused by: nginx: [emerg] no host in upstream ":80" in /etc/nginx/conf.d/elasticbeanstalk-nginx-docker-upstream.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
Failed to start nginx, abort deployment (Executor::NonZeroExitStatus)
...
[2020-05-29T01:51:26.099Z] INFO [11395] - [Application update v1.3.3-1#3/AppDeployStage1/AppDeployEnactHook/01flip.sh] : Activity failed.
[2020-05-29T01:51:26.099Z] INFO [11395] - [Application update v1.3.3-1#3/AppDeployStage1/AppDeployEnactHook] : Activity failed.
[2020-05-29T01:51:26.099Z] INFO [11395] - [Application update v1.3.3-1#3/AppDeployStage1] : Activity failed.
[2020-05-29T01:51:26.100Z] INFO [11395] - [Application update v1.3.3-1#3] : Completed activity. Result:
Application update - Command CMD-AppDeploy failed
The inability to deploy has been consistent for this environment, after several attempts, even reverting to an older version.
Afterwards, I resolved this by isolating the code and error messages using a local docker image with the zipfile. Running the code on my machine outside of docker did NOT reveal any problems, because the pip / pipenv part was missing some depdendency.
Steps for local docker testing:
WITHIN a docker container:
docker system prune
Go to the folder with Dockerfile
docker image build -t <app_name>:<version_number> .
TO run locally:
(docker rm <app_name> first, if you've already got a stopped container with the same name from prior testing)
docker container run --publish 80:80 --name <app_name> myapp:1.0
NOTE:
this won't let you test AWS functions that require environment variables, such as ~.aws credentials because they're not inside the image.
(but you could add them with your Dockerfile)
Once the docker container is running, you'll see (I saw) error messages that were not there when testing locally, because they were caused by a missing package dependency and a pipenv error.

Spark submit on Yarn failing with error "Permission mismatch for caller"

I am trying to submit my spark job to yarn but it keep on failing with the message:
[2019-05-13 14:13:18.281]Application application_1557517779491_0093 initialization failed (exitCode=20) with output: main : command provided 0
main : run as user is yogesh
main : requested yarn user is yogesh
Permission mismatch for /data/hadoop/yarn/local for caller uid: 0, owner uid: 1007.
Couldn't get userdir directory for yogesh.
I have tried to update the permission of the mentioned directory but its still failing.

I get the following error on the "Confirm Hosts" step in Ambari (creating cluster):

The Registration log contains the following error:
==========================
Running setup agent script...
==========================
Command start time 2017-11-26 12:05:31
(' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2017-11-26 12:00:19,304 ExitHelper.py:53 - Performing cleanup before exiting...
I tried it a few times from scratch and I get the same result. ANy ideas on how to fix this?

Liferay Build Services failed

I've created a configuration for the Liferay Service Builder. After this I tried to build services, but I received the following error:
Buildfile: C:\LiferayNew\liferay-plugins-sdk-6.2\portlets\guestbook-portlet\build.xml
BUILD FAILED
C:\LiferayNew\liferay-plugins-sdk-6.2\portlets\guestbook-portlet\build.xml:5: The following error occurred while executing this line:
C:\LiferayNew\liferay-plugins-sdk-6.2\portlets\build-common-portlet.xml:5: The following error occurred while executing this line:
C:\LiferayNew\liferay-plugins-sdk-6.2\build-common-plugin.xml:5: The following error occurred while executing this line:
C:\LiferayNew\liferay-plugins-sdk-6.2\build-common.xml:60: The following error occurred while executing this line:
C:\LiferayNew\liferay-plugins-sdk-6.2\build-common-ivy.xml:71: The following error occurred while executing this line:
C:\LiferayNew\liferay-plugins-sdk-6.2\build-common-ivy.xml:55: java.net.MalformedURLException: no protocol: ${ivy.jar.url}
Total time: 1 second.
How I can solve this issue?

SSIS deployment issue [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Running an SSIS Package using dtexec
My SSIS package is working fine when I'm running it on my local system. My Package copies a blank template excel file which has only headers, to another place, and then populates this copy with data from the DB. However, when i place the package and config on the server, and schedule an SQL server job on it, it's throwing errors as follows :
Executed as user: CIQHYD\sqladmindev.
Microsoft (R) SQL Server Execute Package UtilityVersion 10.0.4000.0 for 64-bitCopyright (C) Microsoft Corp 1984-2005. All rights reserved.
Started: 3:24:28 PM
Error: 2012-10-29 15:24:28.34
Code: 0xC001401E
Source: GICSReport Connection manager "GICSReport.xls"
Description: The file name "\\HYD-FILESVR\Departments\Technology\GICSReports\Dev\GICSReport.xls" specified in the connection was not valid.
End Error
Error: 2012-10-29 15:24:28.34
Code: 0xC001401D
Source: GICSReport
Description: Connection "GICSReport.xls" failed validation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 3:24:28 PM
Finished: 3:24:28 PM
lapsed: 0.234 seconds
[SQLSTATE 42000] (Error 50000). The step failed.
When I delete the file at the Destination folder, i get this error :
Executed as user: CIQHYD\sqladmindev.
Microsoft (R) SQL Server Execute Package Utility
Version 10.0.4000.0 for 64-bitCopyright (C) Microsoft Corp 1984-2005. All rights reserved.
Started: 3:15:38 PM
Error: 2012-10-29 15:15:38.57
Code: 0xC001401E
Source: GICSReport Connection manager "GICStemplate.xls"
Description: The file name "\\HYD-FILESVR\Departments\Technology\GICSAutomationTemplate\GICStemplate.xls" specified in the connection was not valid.
End Error
Error: 2012-10-29 15:15:38.57
Code: 0xC0202070
Source: GICSReport Connection manager "GICStemplate.xls" Description: The file name property is not valid. The file name is a device or contains invalid characters.
End Error
Error: 2012-10-29 15:15:38.57
Code: 0xC0029163
Source: Copy Template To Destination File System Task
Description: File or directory "\\HYD-FILESVR\Departments\Technology\GICSAutomationTemplate\GICStemplate.xls" represented by connection "GICStemplate.xls" does not exist.
End Error
Error: 2012-10-29 15:15:38.57
Code: 0xC002F30A
Source: Copy Template To Destination File System Task
Description: The source is empty.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 3:15:38 PM
Finished: 3:15:38 PM
Elapsed: 0.344 seconds [SQLSTATE 42000] (Error 50000). The step failed.
Version 10.0.4000.0 for 64-bitCopyright (C) Microsoft Corp 1984-2005.
Did you try to run it in 32-bit mode?
http://microsoft-ssis.blogspot.nl/2012/09/swtich-package-from-64bit-to-32bit.html

Resources