Closed JeffreyLimbacher closed 6 years ago
Hi Jeffrey,
Sorry about this trouble that you have gone through. Our documentation needs to be updated to reflect a recent change regarding the AsterixDB changes.
For now, What you can try is:
Create a directory named "asterixdb" in your home directory and move to that directory. $ mkdir asterixdb $ cd asterixdb
Download asterix-server-0.9.3-SNAPSHOT-binary-assembly.zip from this link. http://cloudberry.ics.uci.edu/img/asterix-server-0.9.3-SNAPSHOT-binary-assembly.zip
Uncompress the file. $ unzip asterix-server-0.9.3-SNAPSHOT-binary-assembly.zip
Move to "opt/local/bin" directory. $ cd opt/local/bin
Execute "start-sample-cluster.sh" (Windows: start-sample-cluster.bat) to start the sample instance. You should see "INFO: Cluster started and is ACTIVE." message. $ ./start-sample-cluster.sh
CLUSTERDIR=/home/x/asterixdb/opt/local INSTALLDIR=/home/x/asterixdb LOGSDIR=/home/x/asterixdb/opt/local/logs
INFO: Starting sample cluster... INFO: Waiting up to 30 seconds for cluster 127.0.0.1:19002 to be available. INFO: Cluster started and is ACTIVE.
Execute "jps" to check one instance of "CCDriver" and two instances of "NCService" and "NCDriver" are running. $ jps 59264 NCService 59280 NCDriver 59265 CCDriver 59446 Jps 59263 NCService 59279 NCDriver
Move to "cloudberry/examples/twittermap" directory. Here, we suppose that you have cloned cloudberry in your home directory. $ cd ~/cloudberry/examples/twittermap
Execute ./script/ingestAllTwitterToLocalCluster.sh to ingest the sample Tweet data. (#Please make sure you already installed "sbt" and "scala" packages, or this step will download and install "sbt" and "scala" automatically, which will take a lot of time.) $ ./script/ingestAllTwitterToLocalCluster.sh (This process may take a few minutes according to your environment.)
Open the AsterixDB Web interface (http://localhost:19001) and issue the following queries to see the ingestion has finished without an issue.
use twitter; select count( ) from ds_tweet; select count( ) from dsStatePopulation; select count( ) from dsCountyPopulation; select count( ) from dsCityPopulation;
Results: { "$1": 47000 }
Results: { "$1": 52 }
Results: { "$1": 3221 }
Results:
{ "$1": 29833 }
On cloudberry/cloudberry $ sbt "project neo" "run"
On cloudberry/examples/twittermap $ sbt "project web" "run 9001"
Access Twittermap demo at: http://localhost:9001
You need to execute the following command to stop AsterixDB on (asterixdb/opt/local/bin) when you are done. $ ./stop-sample-cluster.sh
Thanks for the reply, Taewoo. The count queries are giving me an error:
function twitter.count@0 is not defined [CompilationException]
It doesn't seem to impact the Twitter map example. Thanks.
I am not sure why, but the * sign is missed.
select count(*) from ds_tweet;
Thanks. It works now.
Jeff,
Thanks for using Cloudberry! We are in the process of updating the online documentation. Before that, please communicate with our team directly to solve such problems.
Chen
On Thu, Mar 1, 2018 at 11:07 AM, Jeffrey Limbacher <notifications@github.com
wrote:
Thanks. It works now.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ISG-ICS/cloudberry/issues/489#issuecomment-369696558, or mute the thread https://github.com/notifications/unsubscribe-auth/AMU9nexbNcrVqv6LGwZXxfRypu0uTvT6ks5taEbggaJpZM4SYmyG .
I used ./script/dockerRunAsterixDB.sh to start an Asterix DB instance. When ingesting the twitter data, I get syntax errors from Asterix DB:
This also happens when creating feeds:
It seems that the shell scripts are using old syntax. I managed fix the syntax errors on the population ingestion by changing the syntax, e.g. I changed
to
in the appropriate places. However, Noah then gets a
NullPointerException
:ingesttion_output.txt: Contains the output from the original script files which has the syntax errors.