私たちは、私はインパラSQLへのOracle SQLで書かれている次のクエリをひそかにしようとしています、オラクルからのHadoopに移行されます。 CASE WHEN UPPER(table1.ACC_NBR) = LOWER(table1.ACC_NBR) THEN SUBSTR(table1.ACC_NBR,5,1)||'-'||SUBSTR(table1.ACC_NBR,8,2)||'-'
Apache Hadoopで、与えられた入力ファイルの素数の平均合計を数えるmapreduceプログラムを実行しようとしています。 これは私のマッパー import sys
for word in sys.stdin:
print(word)
であると私は、次のコマンドでそれを実行すると、これは、今リデューサー import sys
primes = []
for word i
私はscalaとjavaを初めて使用しています。 私はK平均クラスタリングのために以下のコードを書くことが、以下のエラーを取得しています: Error: Main method not found in class kmeans, please define the main method as:
public static void main(String[] args)
or a