Ok it looks better, my problem was creating by hand a lowercase keyspace
see ref here :
http://docs.datastax.com/en/cql/3.0/cql/cql_reference/ucase-lcase_r.html

# cqlsh -u tron
Password:
Connected to CASS-1 at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.2.5 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.
tron@cqlsh> SELECT * FROM system.schema_keyspaces;

 keyspace_name         | durable_writes | strategy_class
           | strategy_options
-----------------------+----------------+---------------------------------------------+----------------------------
 Usergrid_Applications |           True |
org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"1"}
           system_auth |           True |
org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"1"}
                 Locks |           True |
org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"1"}
    system_distributed |           True |
org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"3"}
                system |           True |
 org.apache.cassandra.locator.LocalStrategy |                         {}
         system_traces |           True |
org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"2"}

(6 rows)


Well, I was able to run the init url without errors :

# curl -v -u superuser:superpass -X PUT
http://localhost:8080/system/database/setup
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'superuser'
> PUT /system/database/setup HTTP/1.1
> Authorization: Basic c3VwZXJ1c2VyOnN1cGVycGFzcw==
> User-Agent: curl/7.38.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< Access-Control-Allow-Origin: *
< Content-Type: application/json
< Content-Length: 105
< Date: Mon, 04 Apr 2016 13:49:33 GMT
<
{
  "action" : "cassandra setup",
  "status" : "ok",
  "timestamp" : 1459777771656,
  "duration" : 2064
* Connection #0 to host localhost left intact
}#

# curl -v -u superuser:superpass -X PUT
http://localhost:8080/system/database/bootstrap
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'superuser'
> PUT /system/database/bootstrap HTTP/1.1
> Authorization: Basic c3VwZXJ1c2VyOnN1cGVycGFzcw==
> User-Agent: curl/7.38.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< Access-Control-Allow-Origin: *
< Content-Type: application/json
< Content-Length: 105
< Date: Mon, 04 Apr 2016 13:50:26 GMT
<
{
  "action" : "cassandra setup",
  "status" : "ok",
  "timestamp" : 1459777822815,
  "duration" : 3455
* Connection #0 to host localhost left intact
}#

and

# curl -X GET http://localhost:8080/system/superuser/setup    -u
superuser:superpass
{
  "action" : "superuser setup",
  "status" : "ok",
  "timestamp" : 1459777904973,
  "duration" : 85
}#

I continue to have errors about sending emails in catalina and the portal
doesn't look to connect with superuser / superpass but I think I have to
invest on my side.

Is it necessary to use valid smtp configuration to perform init ?

2016-04-04 15:50:25,197 ERROR (http-bio-8080-exec-3)
[org.apache.usergrid.utils.MailUtils] - MAIL-DELIVERY-FAILURE -
description: [could not deliver message] recipient: [[email protected]]
javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password
not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/answer/14257 i5sm29574877wjx.15
- gsmtp

I don't understand why there is possibility to config auth if I need to
keep the default cassandra without authentication like that :

# Authentication backend, implementing IAuthenticator; used to identify
users
# Out of the box, Cassandra provides
org.apache.cassandra.auth.{AllowAllAuthenticator,
# PasswordAuthenticator}.
#
# - AllowAllAuthenticator performs no checks - set it to disable
authentication.
# - PasswordAuthenticator relies on username/password pairs to authenticate
#   users. It keeps usernames and hashed passwords in
system_auth.credentials table.
#   Please increase system_auth keyspace replication factor if you use this
authenticator.
#   If using PasswordAuthenticator, CassandraRoleManager must also be used
(see below)
authenticator: AllowAllAuthenticator

# Authorization backend, implementing IAuthorizer; used to limit
access/provide permissions
# Out of the box, Cassandra provides
org.apache.cassandra.auth.{AllowAllAuthorizer,
# CassandraAuthorizer}.
#
# - AllowAllAuthorizer allows any action to any user - set it to disable
authorization.
# - CassandraAuthorizer stores permissions in system_auth.permissions
table. Please
#   increase system_auth keyspace replication factor if you use this
authorizer.
authorizer: AllowAllAuthorizer

Regards,
Guillaume

2016-04-04 15:47 GMT+01:00 John D. Ament <[email protected]>:

> When I was setting this up a while ago, I ran into similar problems like
> yours.  At one point, my ops team had configured cassandra so that only
> authenticated users could create keyspaces, but turned off authentication.
> I received the exact error you just had.
>
> If you created it manually via cqlsh, then the error shown in your log 
> "InvalidRequestException(why:Keyspace
> 'Usergrid_Applications' does not exist" should not exist any longer.
>
> John
>
> On Mon, Apr 4, 2016 at 10:34 AM Guillaume <[email protected]> wrote:
>
>> I removed /var/lib/cassandra/* files and restarted the service. See my
>> last email please, I think we cross our last exchange. I tried to create
>> the keyspace with curl -v -u superuser:superpass -X PUT
>> http://localhost:8080/system/database/setup command and also directly in
>> cassandra with : tron@cqlsh> CREATe KEYSPACE IF NOT EXISTS
>> Usergrid_Applications WITH REPLICATION = { 'class' : 'SimpleStrategy',
>> 'replication_factor' : 1 };
>>
>> both of them didn't work. I don't understand what you want to know about
>> creating keyspaces and limitations in my env ?
>>
>> 2016-04-04 15:20 GMT+01:00 John D. Ament <[email protected]>:
>>
>>> Did you create the keyspace already? Is creating keyspaces limited in
>>> your env?
>>>
>>> John
>>>
>>>
>>> On Mon, Apr 4, 2016 at 10:15 AM Guillaume <[email protected]> wrote:
>>>
>>>> I also added this feature
>>>> in /usr/share/tomcat7/lib/usergrid-deployment.properties
>>>>
>>>> usergrid.cluster_name=usergrid
>>>>
>>>> I get the following error : Caused by:
>>>> InvalidRequestException(why:Keyspace 'Usergrid_Applications' does not 
>>>> exist)
>>>>
>>>> At this step I tried to generate the database with this command :
>>>>
>>>> # curl -v -u superuser:superpass -X PUT
>>>> http://localhost:8080/system/database/setup
>>>> * Hostname was NOT found in DNS cache
>>>> *   Trying 127.0.0.1...
>>>> * Connected to localhost (127.0.0.1) port 8080 (#0)
>>>> * Server auth using Basic with user 'superuser'
>>>> > PUT /system/database/setup HTTP/1.1
>>>> > Authorization: Basic c3VwZXJ1c2VyOnN1cGVycGFzcw==
>>>> > User-Agent: curl/7.38.0
>>>> > Host: localhost:8080
>>>> > Accept: */*
>>>> >
>>>> < HTTP/1.1 500 Internal Server Error
>>>> * Server Apache-Coyote/1.1 is not blacklisted
>>>> < Server: Apache-Coyote/1.1
>>>> < Access-Control-Allow-Origin: *
>>>> < Content-Type: application/json
>>>> < Content-Length: 154
>>>> < Date: Mon, 04 Apr 2016 13:01:12 GMT
>>>> < Connection: close
>>>> <
>>>> * Closing connection 0
>>>> {"error":"runtime","timestamp":1459774872346,"duration":1,"error_description":"Error
>>>> migrating Core Persistence","exception":"java.lang.RuntimeException"}#
>>>>
>>>>
>>>> see the attached catalina.out file
>>>>
>>>> 2016-04-04 15:02 GMT+01:00 Guillaume <[email protected]>:
>>>>
>>>>> Sorry I missed this parameter :
>>>>>
>>>>> # Whether to start the thrift rpc server.
>>>>> start_rpc: true
>>>>>
>>>>> in /etc/cassandra/cassandra.yml because I changed again the version of
>>>>> cassandra ...
>>>>>
>>>>> It still doesn't work and RPC is turned on now. I can see :
>>>>>
>>>>> # netstat -pltn|grep :9
>>>>> tcp        0      0 127.0.0.1:953           0.0.0.0:*
>>>>> LISTEN      1340/named
>>>>> tcp        0      0 0.0.0.0:993             0.0.0.0:*
>>>>> LISTEN      1/init
>>>>> tcp        0      0 127.0.0.1:9160          0.0.0.0:*
>>>>> LISTEN      11381/java
>>>>> tcp6       0      0 ::1:953                 :::*
>>>>>  LISTEN      1340/named
>>>>> tcp6       0      0 127.0.0.1:9200          :::*
>>>>>  LISTEN      2640/java
>>>>> tcp6       0      0 127.0.0.1:9042          :::*
>>>>>  LISTEN      11381/java
>>>>> tcp6       0      0 127.0.0.1:9300          :::*
>>>>>  LISTEN      2640/java
>>>>> tcp6       0      0 :::9301                 :::*
>>>>>  LISTEN      11672/java
>>>>>
>>>>> and here you will find attached the new /var/log/tomcat7/catalina.out
>>>>>
>>>>> 2016-04-04 14:36 GMT+01:00 John D. Ament <[email protected]>:
>>>>>
>>>>>> Guillaume,
>>>>>>
>>>>>> Your emails a bit confusing, I'll assume that you mean it still
>>>>>> didn't work.
>>>>>>
>>>>>> I see this error in your logs: 1) Error injecting constructor,
>>>>>> com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException:
>>>>>> PoolTimeoutException: [host=127.0.0.1(127.0.0.1):9160, 
>>>>>> latency=2007(2007),
>>>>>> attempts=1]Timed out waiting for connection
>>>>>>
>>>>>> Are you sure that cassandra is up and running when you're trying
>>>>>> this? is port 9160 open?
>>>>>>
>>>>>> John
>>>>>>
>>>>>> On Mon, Apr 4, 2016 at 8:54 AM Guillaume <[email protected]> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I can change my arch in order to keep cassandra out of access for
>>>>>>> security. I'll try to access without auth by keeping the followings
>>>>>>> parameters by default in /etc/cassandra/cassandra.yml :
>>>>>>>
>>>>>>>
>>>>>>> authenticator: AllowAllAuthenticator
>>>>>>> authorizer: AllowAllAuthorizer
>>>>>>>
>>>>>>> instead of :
>>>>>>>
>>>>>>> authenticator: PasswordAuthenticator
>>>>>>> authorizer: CassandraAuthorizer
>>>>>>>
>>>>>>> And I changed this keys to empty values
>>>>>>> in /usr/share/tomcat7/lib/usergrid-deployment.properties :
>>>>>>>
>>>>>>> # Set the credentials used for Cassandra, if any.
>>>>>>> #
>>>>>>> cassandra.username=
>>>>>>> cassandra.password=
>>>>>>>
>>>>>>> I also moved to cassandra 2.2.5 and changed the version in
>>>>>>> the /usr/share/tomcat7/lib/usergrid-deployment.properties file.
>>>>>>>
>>>>>>> # Set a property to tell Usergrid which version of cassandra is
>>>>>>> being used.
>>>>>>> #
>>>>>>> cassandra.version=2.2.5
>>>>>>>
>>>>>>> LOGS :
>>>>>>> ####
>>>>>>>
>>>>>>> # curl -v 127.0.0.1:9200
>>>>>>> * Rebuilt URL to: 127.0.0.1:9200/
>>>>>>> * Hostname was NOT found in DNS cache
>>>>>>> *   Trying 127.0.0.1...
>>>>>>> * Connected to 127.0.0.1 (127.0.0.1) port 9200 (#0)
>>>>>>> > GET / HTTP/1.1
>>>>>>> > User-Agent: curl/7.38.0
>>>>>>> > Host: 127.0.0.1:9200
>>>>>>> > Accept: */*
>>>>>>> >
>>>>>>> < HTTP/1.1 200 OK
>>>>>>> < Content-Type: application/json; charset=UTF-8
>>>>>>> < Content-Length: 332
>>>>>>> <
>>>>>>> {
>>>>>>>   "status" : 200,
>>>>>>>   "name" : "ES-1",
>>>>>>>   "cluster_name" : "elasticsearch",
>>>>>>>   "version" : {
>>>>>>>     "number" : "1.4.5",
>>>>>>>     "build_hash" : "2aaf797f2a571dcb779a3b61180afe8390ab61f9",
>>>>>>>     "build_timestamp" : "2015-04-27T08:06:06Z",
>>>>>>>     "build_snapshot" : false,
>>>>>>>     "lucene_version" : "4.10.4"
>>>>>>>   },
>>>>>>>   "tagline" : "You Know, for Search"
>>>>>>> }
>>>>>>> * Connection #0 to host 127.0.0.1 left intact
>>>>>>>
>>>>>>>
>>>>>>> # nodetool status
>>>>>>> Datacenter: datacenter1
>>>>>>> =======================
>>>>>>> Status=Up/Down
>>>>>>> |/ State=Normal/Leaving/Joining/Moving
>>>>>>> --  Address    Load       Tokens       Owns    Host ID
>>>>>>>                 Rack
>>>>>>> UN  127.0.0.1  131.37 KB  256          ?
>>>>>>> 273f3db2-822a-4ad8-bed7-2176a1fec1b4  rack1
>>>>>>>
>>>>>>> Note: Non-system keyspaces don't have the same replication settings,
>>>>>>> effective ownership information is meaningless
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> See attached logs & configs to this email please,
>>>>>>>
>>>>>>> Regards,
>>>>>>> Guillaume
>>>>>>>
>>>>>>> 2016-04-04 0:34 GMT+01:00 John D. Ament <[email protected]>:
>>>>>>>
>>>>>>>> Hi Guillaume,
>>>>>>>>
>>>>>>>> Just wondering, do you require auth to access your cassandra
>>>>>>>> instance?
>>>>>>>>
>>>>>>>> John
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, Apr 3, 2016 at 7:12 PM Guillaume <[email protected]> wrote:
>>>>>>>>
>>>>>>>>> hi,
>>>>>>>>>
>>>>>>>>> I tried to init the database with the command :
>>>>>>>>>
>>>>>>>>> # curl -v -u tron:g1psy -X PUT
>>>>>>>>> http://localhost:8080/system/database/setup
>>>>>>>>> * Hostname was NOT found in DNS cache
>>>>>>>>> *   Trying 127.0.0.1...
>>>>>>>>> * Connected to localhost (127.0.0.1) port 8080 (#0)
>>>>>>>>> * Server auth using Basic with user 'tron'
>>>>>>>>> > PUT /system/database/setup HTTP/1.1
>>>>>>>>> > Authorization: Basic dHJvbjpnMXBzeQ==
>>>>>>>>> > User-Agent: curl/7.38.0
>>>>>>>>> > Host: localhost:8080
>>>>>>>>> > Accept: */*
>>>>>>>>> >
>>>>>>>>> < HTTP/1.1 500 Internal Server Error
>>>>>>>>> * Server Apache-Coyote/1.1 is not blacklisted
>>>>>>>>> < Server: Apache-Coyote/1.1
>>>>>>>>> < Access-Control-Allow-Origin: *
>>>>>>>>> < Content-Type: application/json
>>>>>>>>> < Content-Length: 218
>>>>>>>>> < Date: Sun, 03 Apr 2016 22:02:13 GMT
>>>>>>>>> < Connection: close
>>>>>>>>> <
>>>>>>>>> * Closing connection 0
>>>>>>>>> {"error":"h_invalid_request","timestamp":1459720933979,"duration":1,"error_description":"InvalidRequestException(why:You
>>>>>>>>> have not logged
>>>>>>>>> in)","exception":"me.prettyprint.hector.api.exceptions.HInvalidRequestException"}#
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> and from catalina.out error log I get :
>>>>>>>>>
>>>>>>>>> 2016-04-04 00:02:13,895 INFO (http-bio-8080-exec-8)
>>>>>>>>> [org.apache.usergrid.rest.system.DatabaseResource] - DatabaseResource
>>>>>>>>> initialized
>>>>>>>>> 2016-04-04 00:02:13,897 INFO (http-bio-8080-exec-8)
>>>>>>>>> [org.apache.usergrid.rest.system.DatabaseResource] - Setting up 
>>>>>>>>> Cassandra
>>>>>>>>> (runDatabaseSetup)
>>>>>>>>> 2016-04-04 00:02:13,977 INFO (http-bio-8080-exec-8)
>>>>>>>>> [org.apache.usergrid.corepersistence.CpSetup] - Creating static 
>>>>>>>>> application
>>>>>>>>> keyspace Usergrid_Applications
>>>>>>>>> 2016-04-04 00:02:13,978 ERROR (http-bio-8080-exec-8)
>>>>>>>>> [org.apache.usergrid.rest.exceptions.ThrowableMapper] - An uncaught
>>>>>>>>> exception occurred during HTTP invocation
>>>>>>>>> me.prettyprint.hector.api.exceptions.HInvalidRequestException:
>>>>>>>>> InvalidRequestException(why:You have not logged in)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:195)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:185)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:104)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:253)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.AbstractCluster.describeKeyspace(AbstractCluster.java:199)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.persistence.cassandra.CassandraService.keySpaceExists(CassandraService.java:299)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.persistence.cassandra.CassandraService.createColumnFamily(CassandraService.java:269)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.corepersistence.CpSetup.setupStaticKeyspace(CpSetup.java:176)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.corepersistence.CpSetup.initSubsystems(CpSetup.java:86)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.corepersistence.CpEntityManagerFactory.setup(CpEntityManagerFactory.java:520)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.rest.system.DatabaseResource.runDatabaseSetup(DatabaseResource.java:72)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
>>>>>>>>> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
>>>>>>>>> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
>>>>>>>>> at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
>>>>>>>>> at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
>>>>>>>>> at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:548)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:489)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:426)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
>>>>>>>>> at
>>>>>>>>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
>>>>>>>>> at
>>>>>>>>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.rest.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:94)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
>>>>>>>>> at
>>>>>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
>>>>>>>>> at
>>>>>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
>>>>>>>>> at
>>>>>>>>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>>>>>> at
>>>>>>>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>> Caused by: InvalidRequestException(why:You have not logged in)
>>>>>>>>> at
>>>>>>>>> org.apache.cassandra.thrift.Cassandra$describe_keyspace_result.read(Cassandra.java:29013)
>>>>>>>>> at
>>>>>>>>> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
>>>>>>>>> at
>>>>>>>>> org.apache.cassandra.thrift.Cassandra$Client.recv_describe_keyspace(Cassandra.java:1276)
>>>>>>>>> at
>>>>>>>>> org.apache.cassandra.thrift.Cassandra$Client.describe_keyspace(Cassandra.java:1263)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:190)
>>>>>>>>> ... 67 more
>>>>>>>>> 2016-04-04 00:02:13,979 ERROR (http-bio-8080-exec-8)
>>>>>>>>> [org.apache.usergrid.rest.exceptions.AbstractExceptionMapper] -
>>>>>>>>> me.prettyprint.hector.api.exceptions.HInvalidRequestException 5XX 
>>>>>>>>> Uncaught
>>>>>>>>> Exception (500)
>>>>>>>>> me.prettyprint.hector.api.exceptions.HInvalidRequestException:
>>>>>>>>> InvalidRequestException(why:You have not logged in)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:195)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:185)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:104)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:253)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.AbstractCluster.describeKeyspace(AbstractCluster.java:199)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.persistence.cassandra.CassandraService.keySpaceExists(CassandraService.java:299)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.persistence.cassandra.CassandraService.createColumnFamily(CassandraService.java:269)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.corepersistence.CpSetup.setupStaticKeyspace(CpSetup.java:176)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.corepersistence.CpSetup.initSubsystems(CpSetup.java:86)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.corepersistence.CpEntityManagerFactory.setup(CpEntityManagerFactory.java:520)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.rest.system.DatabaseResource.runDatabaseSetup(DatabaseResource.java:72)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>> at
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
>>>>>>>>> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
>>>>>>>>> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
>>>>>>>>> at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
>>>>>>>>> at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
>>>>>>>>> at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:548)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:489)
>>>>>>>>> at
>>>>>>>>> org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:426)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
>>>>>>>>> at
>>>>>>>>> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
>>>>>>>>> at
>>>>>>>>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
>>>>>>>>> at
>>>>>>>>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>>>>>> at
>>>>>>>>> org.apache.usergrid.rest.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:94)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>>>>>>>>> at
>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
>>>>>>>>> at
>>>>>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
>>>>>>>>> at
>>>>>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
>>>>>>>>> at
>>>>>>>>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>>>>>> at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>>>>>> at
>>>>>>>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>> Caused by: InvalidRequestException(why:You have not logged in)
>>>>>>>>> at
>>>>>>>>> org.apache.cassandra.thrift.Cassandra$describe_keyspace_result.read(Cassandra.java:29013)
>>>>>>>>> at
>>>>>>>>> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
>>>>>>>>> at
>>>>>>>>> org.apache.cassandra.thrift.Cassandra$Client.recv_describe_keyspace(Cassandra.java:1276)
>>>>>>>>> at
>>>>>>>>> org.apache.cassandra.thrift.Cassandra$Client.describe_keyspace(Cassandra.java:1263)
>>>>>>>>> at
>>>>>>>>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:190)
>>>>>>>>> ... 67 more
>>>>>>>>> 2016-04-04 00:02:13,980 ERROR (http-bio-8080-exec-8)
>>>>>>>>> [org.apache.usergrid.rest.exceptions.AbstractExceptionMapper] - Server
>>>>>>>>> Error (500):
>>>>>>>>> {"error":"h_invalid_request","timestamp":1459720933979,"duration":1,"error_description":"InvalidRequestException(why:You
>>>>>>>>> have not logged
>>>>>>>>> in)","exception":"me.prettyprint.hector.api.exceptions.HInvalidRequestException"}
>>>>>>>>>
>>>>>>>>> What's wrong here please ?
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>
>>>>
>>

Reply via email to