Hello all,
New to cascalog, cascading and clojure.
I'm trying to read from and save to a (Maple) HBase tap. Reading works
fine but the following code:
(defn trial-age-b ;; fails could not select fields
[]
(let [src-table (hbase-tap "src-table" "person" "cf" "age" "sex")
tgt-table (hbase-tap "tgt-table" "person" "cf" "age" "sex" )
]
(?<- tgt-table [?person ?age ?sex] (src-table ?b-person ?b-age ?b-sex)
(to-string ?b-person :> ?person) (to-string ?b-age :> ?age) (to-string
?b-sex :> ?sex))
))
causes the error:
FieldsResolverException could not select fields: [{1}:'person'], from:
[{3}:'?person', '?age', '?sex'] cascading.tuple.Fields.indexOf
(Fields.java:823)
If I add '?' to the field names on the tgt-table tap, the HBase table is
written but the column qualifiers retain the ? in them.
This *appears* to be a similar problem to this post<https://groups.google.com/forum/#!msg/cascalog-user/3ZEu6yx0BBs/K33U2h6gGOQJ> but
I'm using cascalog 1.10
Any guidance would be appreciated.
Thanks in advance.
FYI: project.clj is:
(defproject aud-cas "0.1.0-SNAPSHOT"
:description "Using cascalog, cascading and clojure for auditd log ETL"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]
[cascalog "1.10.0"]
;;[cascalog "1.9.0"]
[org.clojure/data.json "0.1.2"]
[clj-time "0.4.3"]
;;[com.twitter/maple "0.2.0"]
[com.twitter/maple "0.2.3"]
[org.apache.hadoop/hadoop-core "0.20.2-dev"]
[org.apache.hbase/hbase "0.94.1"]
[cascading/cascading-hadoop "2.0.6-wip-358"]
[cascading/cascading-core "2.0.6-wip-358"]
]
:dev-dependencies [[org.apache.hadoop/hadoop-core "0.20.2-dev"]]
:profiles { :dev {:dependencies [[org.apache.hadoop/hadoop-core
"0.20.2-dev"]]}}
:repositories {"conjars" "http://conjars.org/repo"})