Though I am using the docker facing this issue. The same things are working fine on other systems
Fatal error: Uncaught Cassandra\Exception\RuntimeException: Keyspace 'opspot' does not exist in /var/www/Opspot/engine/Core/Data/Cassandra/Client.php:32 Stack trace: #0 /var/www/Opspot/engine/Core/Data/Cassandra/Client.php(32): Cassandra\DefaultCluster->connect('opspot') #1 /var/www/Opspot/engine/Core/Data/DataProvider.php(38): Opspot\Core\Data\Cassandra\Client->__construct() #2 [internal function]: Opspot\Core\Data\DataProvider->Opspot\Core\Data{closure}(Object(Opspot\Core\Di\Di)) #3 /var/www/Opspot/engine/Core/Di/Di.php(25): call_user_func(Object(Closure), Object(Opspot\Core\Di\Di)) #4 /var/www/Opspot/engine/Core/Blogs/Legacy/Repository.php(43): Opspot\Core\Di\Di->get('Database\Cassan...') #5 /var/www/Opspot/engine/Core/Blogs/Repository.php(29): Opspot\Core\Blogs\Legacy\Repository->__construct() #6 /var/www/Opspot/engine/Core/Blogs/Manager.php(46): Opspot\Core\Blogs\Repository->__construct() #7 /var/www/Opspot/engine/Core/Blogs/Events.php(23): Opspot\Core\Blogs\Manager->__construct() #8 /var/www/Opspot/engine/Core/Eve in /var/www/Opspot/engine/Core/Data/Cassandra/Client.php on line 32
Warning: Cannot modify header information - headers already sent in /var/www/Opspot/engine/lib/elgglib.php on line 985
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
i have used this from nodejs cli
cordova build android
it gives me this eror :-
(node:3352) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3352) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
i cant detect whats wrong i am making a very basic hello world App
here is the code of my app
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<style>
</style>
<body>
<h1>Hello World</h1>
</body>
</html>
I am trying to deploy spark application (Java) to spark engine as part of analytics engine service on Bluemix. I followed the step mention here
https://console.bluemix.net/docs/services/AnalyticsEngine/WCE-CLI.html#analytics-engine-command-line-interface
After following all the steps and at the time of spark-submit, i get the following error
C:\Users\IBM_ADMIN\eclipse-workspace\mySparkApp\target>bx ae spark-submit --className mySparkApp.Main mySparkApp-0.0.1-S
NAPSHOT.jar
Current user is 'clsadmin'
Password>
Contacting endpoint 'https://159.122.220.119:8443'...
FAILED
Server call failed. Message: '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /gateway/default/livy/v1/batches. Reason:
<pre> Server Error</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>
'
I am able to access the ambari server and can see the spark services up and running. I am also able to access the livy API endpoint from the browser
https://chs-uvi-769-mn001.bi.services.eu-gb.bluemix.net:8443/gateway/default/livy/v1/batches
{"from":0,"total":5,"sessions":[{"id":0,"state":"dead","appId":null,"appInfo":{"driverLogUrl":null,"sparkUiUrl":null},"log":["java.lang.Exception: No YARN application is found with tag livy-batch-0-t8fc4ebv in 60 seconds. Please check your cluster status, it is may be very busy.","com.cloudera.livy.utils.SparkYarnApp.com$cloudera$livy$utils$SparkYarnApp$$getAppIdFromTag(SparkYarnApp.scala:182) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:248) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:245) scala.Option.getOrElse(Option.scala:120) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1.apply$mcV$sp(SparkYarnApp.scala:245) com.cloudera.livy.Utils$$anon$1.run(Utils.scala:95)"]},{"id":1,"state":"dead","appId":null,"appInfo":{"driverLogUrl":null,"sparkUiUrl":null},"log":["java.lang.Exception: No YARN application is found with tag livy-batch-1-1olxdmt5 in 60 seconds. Please check your cluster status, it is may be very busy.","com.cloudera.livy.utils.SparkYarnApp.com$cloudera$livy$utils$SparkYarnApp$$getAppIdFromTag(SparkYarnApp.scala:182) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:248) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:245) scala.Option.getOrElse(Option.scala:120) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1.apply$mcV$sp(SparkYarnApp.scala:245) com.cloudera.livy.Utils$$anon$1.run(Utils.scala:95)"]},{"id":2,"state":"dead","appId":null,"appInfo":{"driverLogUrl":null,"sparkUiUrl":null},"log":["java.lang.Exception: No YARN application is found with tag livy-batch-2-xbjzpkbp in 60 seconds. Please check your cluster status, it is may be very busy.","com.cloudera.livy.utils.SparkYarnApp.com$cloudera$livy$utils$SparkYarnApp$$getAppIdFromTag(SparkYarnApp.scala:182) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:248) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:245) scala.Option.getOrElse(Option.scala:120) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1.apply$mcV$sp(SparkYarnApp.scala:245) com.cloudera.livy.Utils$$anon$1.run(Utils.scala:95)"]},{"id":3,"state":"dead","appId":null,"appInfo":{"driverLogUrl":null,"sparkUiUrl":null},"log":["java.lang.Exception: No YARN application is found with tag livy-batch-3-sbilpm4a in 60 seconds. Please check your cluster status, it is may be very busy.","com.cloudera.livy.utils.SparkYarnApp.com$cloudera$livy$utils$SparkYarnApp$$getAppIdFromTag(SparkYarnApp.scala:182) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:248) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:245) scala.Option.getOrElse(Option.scala:120) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1.apply$mcV$sp(SparkYarnApp.scala:245) com.cloudera.livy.Utils$$anon$1.run(Utils.scala:95)"]},{"id":4,"state":"dead","appId":null,"appInfo":{"driverLogUrl":null,"sparkUiUrl":null},"log":["java.lang.Exception: No YARN application is found with tag livy-batch-4-rvlzpl8o in 60 seconds. Please check your cluster status, it is may be very busy.","com.cloudera.livy.utils.SparkYarnApp.com$cloudera$livy$utils$SparkYarnApp$$getAppIdFromTag(SparkYarnApp.scala:182) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:248) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1$$anonfun$4.apply(SparkYarnApp.scala:245) scala.Option.getOrElse(Option.scala:120) com.cloudera.livy.utils.SparkYarnApp$$anonfun$1.apply$mcV$sp(SparkYarnApp.scala:245) com.cloudera.livy.Utils$$anon$1.run(Utils.scala:95)"]}]}
I am not able to get what is the issue. I have enabled the bluemix trace and the output in debug mode for the same command is
C:\Users\IBM_ADMIN\eclipse-workspace\mySparkApp\target>SET BLUEMIX_TRACE=true
C:\Users\IBM_ADMIN\eclipse-workspace\mySparkApp\target>bx ae spark-submit --className mySparkApp.Main mySparkApp-0.0.1-S
NAPSHOT.jar
Current user is 'clsadmin'
Password>
DEBUG: INPUTS PROVIDED
file mySparkApp-0.0.1-SNAPSHOT.jar
proxyUser NOTSET
className mySparkApp.Main
inputArgs []
jars []
pyFiles []
files []
driverMemory NOTSET
driverCores -1
executorMemory NOTSET
executorCores -1
numExecutors -1
archives []
queue NOTSET
name NOTSET
conf map[]
asynchronous false
upload false
DEBUG: PROCESSED INPUTS
file mySparkApp-0.0.1-SNAPSHOT.jar
proxyUser NOTSET
className mySparkApp.Main
inputArgs []
jars []
pyFiles []
files []
driverMemory NOTSET
driverCores -1
executorMemory NOTSET
executorCores -1
numExecutors -1
archives []
queue NOTSET
name NOTSET
conf map[]
asynchronous false
upload false
Contacting endpoint 'https://159.122.220.119:8443'...
←[1;39mREQUEST:←[0m [2018-05-03T16:52:33+05:30]
POST /gateway/default/livy/v1/batches HTTP/1.1
Host: 159.122.220.119:8443
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
X-Requested-By: livy
{"file":"mySparkApp-0.0.1-SNAPSHOT.jar","className":"mySparkApp.Main"}
←[1;39mRESPONSE:←[0m [2018-05-03T16:52:34+05:30] ←[1;39mElapsed:←[0m 1382ms
HTTP/1.1 500 Server Error
Connection: close
Content-Length: 321
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=ISO-8859-1
Date: Thu, 03 May 2018 11:22:52 GMT
Date: Thu, 03 May 2018 11:22:52 GMT
Server: Jetty(9.2.16.v20160414)
Set-Cookie: JSESSIONID=vyw2g1lyyjmo2d2spzs5pnd1;Path=/gateway/default;Secure;HttpOnly
Set-Cookie: rememberMe=deleteMe; Path=/gateway/default; Max-Age=0; Expires=Wed, 02-May-2018 11:22:52 GMT
Strict-Transport-Security: max-age=31536000
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /gateway/default/livy/v1/batches. Reason:
<pre> Server Error</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>
FAILED
Server call failed. Message: '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /gateway/default/livy/v1/batches. Reason:
<pre> Server Error</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>
'
FAILED
Server call failed. Message: '←[1;31m<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /gateway/default/livy/v1/batches. Reason:
<pre> Server Error</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>
←[0m'
Can anyone see what is the issue ? any help or pointer ?
Usually, I have noticed this error when there is an issue with the program. If you have access to the cluster i.e. ssh clsadmin# , you can try running the java program using spark-submit and confirm that the program is valid and there is no issue.
1) Could you please check the Livy log on the spark node (/var/log/livy2) for any error messages logged there?
2) You can also try restarting Livy service on your cluster?
On our test server able to run the sample code:
bx ae spark-submit --className org.apache.spark.examples.SparkPi local:/usr/hdp/current/spark2-client/jars/spark-examples.jar
User (clsadmin)>
Password>
Contacting endpoint 'https://169.60.167.93:8443'...
Job ID '8'
Waiting for job to return application ID. Will check every 10 seconds, and stop checking after 2 minutes. Press Control C to stop waiting.
Finished contacting endpoint 'https://169.60.167.93:8443'
OK
Job ID '8'
Application ID 'application_1521738019714_0083'
Done
while i change layout in different mudule on zf3, there is a error caused.
Fatal error: Uncaught Zend\Router\Exception\RuntimeException: Route with name "" not found in /mnt/shared/zf3.local/vendor/zendframework/zend-router/src/Http/TreeRouteStack.php:354 Stack trace: #0 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Helper/Url.php(106): Zend\Router\Http\TreeRouteStack->assemble(Array, Array) #1 [internal function]: Zend\View\Helper\Url->__invoke('/passport') #2 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(Zend\View\Helper\Url), Array) #3 /mnt/shared/zf3.local/module/Passport/view/layout/layout.phtml(42): Zend\View\Renderer\PhpRenderer->__call('url', Array) #4 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include('/mnt/shared/zf3...') #5 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render() #6 /mnt/shared/zf3.local/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(O in /mnt/shared/zf3.local/vendor/zendframework/zend-router/src/Http/TreeRouteStack.php on line 354
i have no idea to solve this problem.
i used the tutorial :
How to set different layouts for different modules in Zend Framework 3
You can check implementation or just use this module
Change layout per module
I've posted here earlier about how to make a tic tac toe for two users using jsf and I got the link for this great taglib, Primefaces. It's absolutely perfect for what I need to do, but I'm being stuck on trying to make it do anything, even render the examples from their website.
So I've been following this tutorial I found (sadly, there aren't many of them on the subject of Primefaces): http://java.dzone.com/articles/primefaces-quickstart-tutorial
Step by step, I made everything according to this tutorial, yet when I run it, it renders an empty page every time.
So I tried a simpler example from the official website: http://www.primefaces.org/gettingStarted.html
This (test.xhtml):
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<p:spinner />
</h:body>
</html>
renders an empty page, while this:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
test test test test
<p:spinner />
</h:body>
</html>
renders only the "test test test test" text.
So I guess the problem must be in the tags, tomcat doesn't see them/doesn't know how to interprete them.
But, according to the tutorial and the primefaces website all I need to do is to put the jars in WEB-INF/lib as I have done (by the way, I'm using Eclipse and the empty project I created was "Dynamic Web Project").
In my WEB-INF/lib I have the following jars:
jsf-api-2.0.3.jar
jsf-impl-2.0.3.jar
jstl-1.0.2.jar
primefaces-3.3.RC1.jar
If it's of any help, here's the content of the tomcat console:
2012-05-27 13:18:11 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
2012-05-27 13:18:12 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Primefaces1' did not find a matching property.
2012-05-27 13:18:12 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
2012-05-27 13:18:12 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1127 ms
2012-05-27 13:18:12 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2012-05-27 13:18:12 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
2012-05-27 13:18:13 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.3 (SNAPSHOT 20100726) for context '/Primefaces1'
2012-05-27 13:18:17 org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFO: Running on PrimeFaces 3.3.RC1
2012-05-27 13:18:17 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
2012-05-27 13:18:17 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
2012-05-27 13:18:17 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/63 config=null
2012-05-27 13:18:17 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5096 ms
What can be the case? Am I putting the jars in wrong place, is it a tomcat failure or maybe something else entirely?
Ok, I solved it, maybe someone will someday find this useful.
So, when using Primefaces with JSF, not only the webpage files have to have the .xhtml extension (a solution I've found here: http://www.coderanch.com/t/473437/JSF/java/not-allowed-template-text), but also the web.xml file must be modified (a solution I've found here: Simple primefaces application not working), like this:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
Now it works perfectly well.