This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
year="2016" | |
month="01" | |
d="${year}-${month}-01" | |
till=$(date -I -d "$d + 1 month") | |
while [ "$d" != "$till" ]; do | |
echo $d | |
n=$(date -I -d "$d + 1 day") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -v -XDELETE http://uranium.ics.uci.edu:19002/admin/requests/running?client_context_id=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set key left box | |
set autoscale | |
set samples 800 | |
set terminal postscript eps enhanced size 3in,3in color | |
set x2range [-10 : 8] | |
set ytics nomirror | |
set y2tics | |
set autoscale y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop dataverse twitter if exists; | |
create dataverse twitter if not exists; | |
use dataverse twitter | |
create type typeUser if not exists as open { | |
id: int64, | |
name: string, | |
screen_name : string, | |
lang : string, | |
location: string, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sbt "project noah" "run-main edu.uci.ics.cloudberry.noah.feed.FileFeedDriver \ | |
-u 128.195.52.79 -p 10001 " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF | curl -XPOST -d @- --header "Content-Type:application/json" http://localhost:9000/berry | |
{ | |
"dataset": "twitter.ds_tweet", | |
"group": { | |
"by": [ | |
{ | |
"field": "create_at", | |
"apply": { | |
"name": "interval", | |
"args" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for $z in ( | |
for $x in ( | |
for $t in dataset twitter.ds_tweet | |
where $t.create_at > datetime('2016-08-01T00:00:00.000Z') | |
where not(is-null($t.'hashtags')) | |
for $unnest0 in $t.'hashtags' | |
let $taggr := $t | |
group by $g0 := $unnest0, $g1 := get-interval-start-datetime(interval-bin($t.'create_at', datetime('1990-01-01T00:00:00.000Z'), day-time-duration("P1D") )) with $taggr | |
return { 'tag' : $g0, 'day' : $g1,'count' : count($taggr) } | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker volume rm `docker volume ls -f dangling=true | tail -n+2 | gawk '{print $2}' | xargs ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
! Licensed to the Apache Software Foundation (ASF) under one | |
! or more contributor license agreements. See the NOTICE file | |
! distributed with this work for additional information | |
! regarding copyright ownership. The ASF licenses this file | |
! to you under the Apache License, Version 2.0 (the | |
! "License"); you may not use this file except in compliance | |
! with the License. You may obtain a copy of the License at | |
! | |
! http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time cat <<'EOF' | curl -XPOST --data-binary @- http://uranium.ics.uci.edu:19002/aql | |
use dataverse twitter; | |
drop feed TweetFeed if exists; | |
drop feed MessageFeed if exists; | |
create feed TweetFeed using socket_adapter | |
( | |
("sockets"="ur_ur:10001"), | |
("address-type"="nc"), | |
("type-name"="typeTweet"), |
NewerOlder