starting with presto

333 views
Skip to first unread message

eduard...@usmediaconsulting.com

unread,
Oct 14, 2014, 9:56:31 AM10/14/14
to presto...@googlegroups.com
Hi All, I clone presto today and I'm trying to run the server with cassandra connector.

When I launch the server I get the following.

2014-10-14T13:46:42.696+0000 INFO com.facebook.presto.server.PrestoServer.main() Bootstrap
2014-10-14T13:46:42.972+0000 INFO com.facebook.presto.server.PrestoServer.main() org.eclipse.jetty.util.log Logging initialized @31256ms
2014-10-14T13:46:43.596+0000 INFO com.facebook.presto.server.PrestoServer.main() io.airlift.bootstrap.LifeCycleManager Life cycle starting...
2014-10-14T13:46:43.596+0000 INFO com.facebook.presto.server.PrestoServer.main() io.airlift.bootstrap.LifeCycleManager Life cycle startup complete. System ready.
2014-10-14T13:46:43.601+0000 INFO com.facebook.presto.server.PrestoServer.main() com.facebook.presto.metadata.CatalogManager -- Added catalog hive using connector hive-cdh4 --
2014-10-14T13:46:43.601+0000 INFO com.facebook.presto.server.PrestoServer.main() com.facebook.presto.metadata.CatalogManager -- Loading catalog etc/catalog/cassandra.properties --
2014-10-14T13:46:43.608+0000 ERROR com.facebook.presto.server.PrestoServer.main() com.facebook.presto.server.PrestoServer No factory for connector cassandra
java.lang.IllegalArgumentException: No factory for connector cassandra
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:148) ~[guava-16.0.1.jar:na]
at com.facebook.presto.connector.ConnectorManager.createConnection(ConnectorManager.java:97) ~[classes/:na]
at com.facebook.presto.metadata.CatalogManager.loadCatalog(CatalogManager.java:88) ~[classes/:na]
at com.facebook.presto.metadata.CatalogManager.loadCatalogs(CatalogManager.java:70) ~[classes/:na]
at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:113) [classes/:na]
at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:61) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) [exec-maven-plugin-1.2.1.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]


any idea to solve this ?

Regards
Eduardo


Dain Sundstrom

unread,
Oct 14, 2014, 1:33:13 PM10/14/14
to presto...@googlegroups.com
My guess is you have  bad build, and the Cassandra plugin is not being loaded.

The code for that part of the system is very simple.  It takes the provided string, "cassandra", and looks up in a map of the registered plugins.  My guess is the plugin was not loaded during startup.  You can see which plugins were loaded in the server log.


-dain

David Phillips

unread,
Oct 14, 2014, 2:11:37 PM10/14/14
to presto...@googlegroups.com
Did you do a full build first from the command line?

Eduardo Cusa

unread,
Oct 14, 2014, 2:37:52 PM10/14/14
to presto...@googlegroups.com
I run  "mvn clean install" first



On Tue, Oct 14, 2014 at 3:11 PM, David Phillips <da...@acz.org> wrote:
Did you do a full build first from the command line?

--
You received this message because you are subscribed to the Google Groups "Presto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to presto-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eduardo Cusa

unread,
Oct 14, 2014, 3:39:01 PM10/14/14
to presto...@googlegroups.com
after buid again Im still recive "No factory for connector cassandra".

I remove catalog/cassandra.properties file and the server start OK. 

Dain Sundstrom

unread,
Oct 15, 2014, 4:18:49 PM10/15/14
to presto...@googlegroups.com
Are you running the server in presto-server/targets/presto-server-VERSION.tar.gz?  If so, do you see lines like this in the server output:

  -- Loading plugin presto-cassandra --
  ...
  Installing com.facebook.presto.cassandra.CassandraPlugin
  Registering connector cassandra
  -- Finished loading plugin presto-cassandra --

If not, you do not have presto-cassandra in the plugins directory.

-dain


On Tuesday, October 14, 2014 12:39:01 PM UTC-7, Eduardo Cusa wrote:
after buid again Im still recive "No factory for connector cassandra".

I remove catalog/cassandra.properties file and the server start OK. 

On Tue, Oct 14, 2014 at 3:37 PM, Eduardo Cusa <eduardo.cusa@usmediaconsulting.com> wrote:
I run  "mvn clean install" first


On Tue, Oct 14, 2014 at 3:11 PM, David Phillips <da...@acz.org> wrote:
Did you do a full build first from the command line?

--
You received this message because you are subscribed to the Google Groups "Presto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to presto-users+unsubscribe@googlegroups.com.

Eduardo Cusa

unread,
Oct 16, 2014, 2:18:53 PM10/16/14
to presto...@googlegroups.com
Thanks for response, running fron this location the server start OK.

Regards
Eduardo













To unsubscribe from this group and stop receiving emails from it, send an email to presto-users...@googlegroups.com.

sumant...@sprinklr.com

unread,
Jun 8, 2015, 9:56:30 AM6/8/15
to presto...@googlegroups.com
Aren't we supposed to run the server from the 'presto-main' directory ?
Reply all
Reply to author
Forward
0 new messages