and I am trying to play with it - just to see capabilities...
I ran into few problems - inconsistent documentation, strange problem with connectors, unable to install mongodb connector and use it.
I am mainly interested why join does not work (even though README.TXT says it should) and also why I can not install and use mongodb connector.
[vagrant@crossdata ~]$ service connector_deep start
connector_deep: unrecognized service
README.TXT provided with vagrant demo is better - but wasted some time figuring out what is wrong with online documentation. It would be great if these two were in sync.
2) Started following step-by-step from README.TXT and first join failed
xdsh:root:test> SELECT id, age FROM table2;
[Driver] 18-07-2015 10:37:22.026 [INFO|Shell] Query e9c08066-1318-4461-8f34-677e3776d545 in progress
xdsh:root:test> [Driver] 18-07-2015 10:37:22.092 [INFO|BasicDriver$] Query e9c08066-1318-4461-8f34-677e3776d545 finished.
Session Id: a66048da-572e-4795-8e1b-f4b874d80be3
Query: SELECT id, age FROM table2;
Execution time: 0 seconds
Result: QID: e9c08066-1318-4461-8f34-677e3776d545
Partial result: false
--------------
| id | age |
--------------
| 1001 | 42 |
| 999 | 23 |
| 1000 | 35 |
--------------
Result page: 0
Removing results handler for: e9c08066-1318-4461-8f34-677e3776d545
[Driver] 18-07-2015 10:37:43.346 [INFO|Shell] Query 218fb159-55ec-41a0-ac47-189d3c27bc26 in progress
xdsh:root:test>
Result: The operation for query 218fb159-55ec-41a0-ac47-189d3c27bc26 cannot be executed:
xdsh:root:test> describe connectors
» ;
[Driver] 18-07-2015 10:38:20.509 [INFO|Shell]
3) Could not make update working, probably because cassandra connector and sparkSQL connector do not support update operations:
xdsh:root:test> SELECT id, age FROM table2;
[Driver] 18-07-2015 10:54:37.524 [INFO|Shell] Query b6f33d4e-1cc4-49e7-bcbc-cd7d56727c1c in progress
xdsh:root:test> [Driver] 18-07-2015 10:54:37.619 [INFO|BasicDriver$] Query b6f33d4e-1cc4-49e7-bcbc-cd7d56727c1c finished.
Session Id: a66048da-572e-4795-8e1b-f4b874d80be3
Query: SELECT id, age FROM table2;
Execution time: 0 seconds
Result: QID: b6f33d4e-1cc4-49e7-bcbc-cd7d56727c1c
Partial result: false
--------------
| id | age |
--------------
| 1001 | 42 |
| 999 | 23 |
| 1000 | 35 |
--------------
Result page: 0
Removing results handler for: b6f33d4e-1cc4-49e7-bcbc-cd7d56727c1c
xdsh:root:test> update table2 set age = age + 10;
[Driver] 18-07-2015 10:54:43.522 [INFO|Shell] Query f9e91452-d34e-4ebf-98b6-5e2a5f3d62f7 in progress
xdsh:root:test>
Result: The operation for query f9e91452-d34e-4ebf-98b6-5e2a5f3d62f7 cannot be executed:
There is no any attached connector supporting:
[UPDATE_NO_FILTERS]
xdsh:root:test> update table2 set age = age + 10 where age > 0;
[Driver] 18-07-2015 10:54:54.331 [INFO|Shell] Query 1959d75c-7988-4b0f-9260-7600c997f481 in progress
xdsh:root:test>
Result: The operation for query 1959d75c-7988-4b0f-9260-7600c997f481 cannot be executed:
There is no any attached connector supporting:
[UPDATE_NON_INDEXED_GT]
xdsh:root:test> create default index abcIdx on table2(age);
[Driver] 18-07-2015 10:56:11.531 [INFO|Shell] Query 8721c1a2-336b-4748-aed4-a50c419d6139 in progress
xdsh:root:test>
Result: QID: 8721c1a2-336b-4748-aed4-a50c419d6139
INDEX created successfully
xdsh:root:test> update table2 set age = age + 10 where age > 0;
[Driver] 18-07-2015 10:56:16.828 [INFO|Shell] Query b28bbbce-75df-4a43-856e-f99de05e33bf in progress
xdsh:root:test>
Result: The operation for query b28bbbce-75df-4a43-856e-f99de05e33bf cannot be executed:
There is no any attached connector supporting:
[UPDATE_INDEXED_GT]
4) I think there is problem with registration of sparkSQL connector on Vagrant sandbox machine:
xdsh:root:test> describe connectors;
[Driver] 18-07-2015 11:03:34.215 [INFO|Shell]
xdsh:root:test> ATTACH CONNECTOR SparkSQLConnector TO cassandra_prod WITH OPTIONS {'DefaultLimit': '1000'};
[Driver] 18-07-2015 11:03:37.810 [INFO|Shell] Query 4ab0b5a4-43af-4b90-973d-6bdc46cee7a2 in progress
xdsh:root:test> ATTACH CONNECTOR CassandraConnector TO cassandra_prod WITH OPTIONS {'DefaultLimit': '1000'} AND PRIORITY=1;
[Driver] 18-07-2015 11:03:42.069 [INFO|Shell] Query 0cda60a7-3c34-4a34-985c-49a5e0e45b86 in progress
xdsh:root:test>
Result: The operation for query 0cda60a7-3c34-4a34-985c-49a5e0e45b86 cannot be executed:
The connection to cassandra_prod already exists.
xdsh:root:test> describe system;
[Driver] 18-07-2015 11:05:16.386 [INFO|Shell]
Datastore datastore.Cassandra:
Cluster cassandra_prod:
Connector CassandraConnector
4) Tried to build and install MongodB connector from Github (it would be great if there was one built already):
This file talks about non-existent file that should be created during package target/stratio-connector-mongodb-[VERSION]/bin/stratio-connector-mongodb-core[VERSION] start
Managed to create rpm and tried to install it into running crossdata vagrant machine but for some reason it does not install correctly.
[root@crossdata vagrant]# rpm -i stratio-connector-mongodb-0.5.0_SNAPSHOT.noarch.rpm
cp: cannot stat `/opt/sds/stratio-connector-mongodb/template/MongoDBConnector': No such file or directory
warning: %post(stratio-connector-mongodb-0.5.0-0.1.20150718.222944.noarch) scriptlet failed, exit status 1
Parts were installed but it looks like not everything. I tried to execute
[root@crossdata vagrant]# service stratio-connector-mongodb start
stratio-connector-mongodb: unrecognized service
It looks like documentation is wrong - the service name is connector-mongodb
[root@crossdata vagrant]# service connector-mongodb start
env: /etc/init.d/connector-mongodb: Permission denied
After fixing permissions looks like this script is referencing file that does not exit
[root@crossdata init.d]# service connector-mongodb start
/etc/init.d/connector-mongodb: line 1: /opt/sds/stratio-connector-mongodb/bin/stratio-connector-mongodb: No such file or directory
/etc/init.d/connector-mongodb: line 1: exec: /opt/sds/stratio-connector-mongodb/bin/stratio-connector-mongodb: cannot execute: No such file or directory