Return-Path: X-Original-To: apmail-mahout-user-archive@www.apache.org Delivered-To: apmail-mahout-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0040F7710 for ; Tue, 13 Dec 2011 18:52:14 +0000 (UTC) Received: (qmail 22359 invoked by uid 500); 13 Dec 2011 18:52:12 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 22327 invoked by uid 500); 13 Dec 2011 18:52:12 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 22311 invoked by uid 99); 13 Dec 2011 18:52:12 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 18:52:12 +0000 Received: from localhost (HELO [10.0.0.12]) (127.0.0.1) (smtp-auth username gsingers, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 18:52:12 +0000 From: Grant Ingersoll Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/alternative; boundary="Apple-Mail=_3316EB6A-ABDC-4D78-B515-8CC6FA435AB1" Subject: Re: SequenceFile cast problems Date: Tue, 13 Dec 2011 13:52:08 -0500 In-Reply-To: To: user@mahout.apache.org References: Message-Id: X-Mailer: Apple Mail (2.1251.1) --Apple-Mail=_3316EB6A-ABDC-4D78-B515-8CC6FA435AB1 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 What steps have you done? On Dec 13, 2011, at 12:29 PM, Daniele Volpi wrote: > Hi everyone, > I'm trying to implement the Naive Bayes classifier through the > TrainNaiveBayesJob class. > After convert the text files in the required sequencefile for the "run" > method through the seqdirectory program i get this error: > > java.lang.ClassCastException: org.apache.hadoop.io.Text cannot be cast to > org.apache.mahout.math.VectorWritable > > Do you have some hints on the right usage of this class? > > Thanks, > Daniele Volpi -------------------------------------------- Grant Ingersoll http://www.lucidimagination.com --Apple-Mail=_3316EB6A-ABDC-4D78-B515-8CC6FA435AB1--