Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
オラクルデータを HDFS にインポートするために、sqoop importer Java クラスを実行しました。しかし、Imはエラーになりますjava.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal。なぜこれが起こるのか、そして解決策は何なのか知っている人はいますか?
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal
sqoopオプションを使用してまったく同じ問題を解決しました
--hcatalog-database --hcatalog-table
このパラメーターを使用すると、ハイブが入り、avro型 (または私の場合parquet typeはtimestamp) を oracle データ型に変換できます。
parquet type
timestamp