【发布时间】:2016-02-08 00:52:15
【问题描述】:
我正在使用 Mahout 0.9(安装在 HDP 2.2 上)进行主题发现(潜在 Drichlet 分配算法)。我将文本文件存储在目录中
inputraw 并依次执行以下命令
命令#1:
mahout seqdirectory -i inputraw -o output-directory -c UTF-8
命令 #2:
mahout seq2sparse -i output-directory -o output-vector-str -wt tf -ng 3 --maxDFPercent 40 -ow -nv
命令#3:
mahout rowid -i output-vector-str/tf-vectors/ -o output-vector-int
命令#4:
mahout cvb -i output-vector-int/matrix -o output-topics -k 1 -mt output-tmp -x 10 -dict output-vector-str/dictionary.file-0
执行第二条命令后,正如预期的那样,它在下面创建了一堆子文件夹和文件
output-vector-str(命名为 df-count、dictionary.file-0、frequency.file-0、tf-vectors、tokenized-documents 和 wordcount)。考虑到我的输入文件的大小,这些文件的大小看起来都还可以,但是 ``tf-vectors` 下的文件非常小,实际上只有 118 个字节)。
显然是
`tf-vectors` is the input to the 3rd command, the third command also generates a file of small size. Does anyone know:
-
下文件的原因是什么
`tf-vectors` folder to be that small? There must be something wrong. 从第一个命令开始,所有生成的文件都有一个奇怪的编码,也不是人类可读的。这是预料之中的事情吗?
【问题讨论】:
标签: hadoop mapreduce mahout hortonworks-data-platform