Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DE11D200BA3 for ; Thu, 20 Oct 2016 16:27:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DCA52160AE0; Thu, 20 Oct 2016 14:27:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2E711160ADB for ; Thu, 20 Oct 2016 16:27:23 +0200 (CEST) Received: (qmail 99640 invoked by uid 500); 20 Oct 2016 14:27:21 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 98857 invoked by uid 99); 20 Oct 2016 14:27:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2016 14:27:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 01DAD18059B for ; Thu, 20 Oct 2016 14:27:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.692 X-Spam-Level: *** X-Spam-Status: No, score=3.692 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id JEAl-zt-ceKc for ; Thu, 20 Oct 2016 14:27:19 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7C8025F647 for ; Thu, 20 Oct 2016 14:27:18 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id l131so81808078lfl.2 for ; Thu, 20 Oct 2016 07:27:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0I6VqABQKNVLP/X0/SGr/+tuPxPEStVDh6Bz6BGpJU8=; b=Rw+tLj5MNN05WHrQ9iXWXJ+DGd71cyKxUdr0u8VaY71dmsZb16jvP95ig0WBSRRfFJ eC2gb5CPlFDvDqoc67JwJxESTceZXC6rOGh3Do1sovRkRavJQAXX82egRoasjFfXvY8e /HEKWN8KnHpacrt+MQj5MMJTptRFEf0kCeqPNlaYxZpNDjC/q2wccIatbNea1UMH2due HAxn5i28iUik+eofj6vEKkMyBC9CWcLEteDJYiIrdwMZcOpBYUa3fwwEJFIrTPTBYHnf iPXSlcPWF5+pDm2PWK05DSqpjifY9C88BiKBfSRgoQEH0UjK5R6Qt3K29TiD0Txo6jOC fNKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0I6VqABQKNVLP/X0/SGr/+tuPxPEStVDh6Bz6BGpJU8=; b=WOQ4OhmSeQIjQ7yyGP4bcSDTYmms5zjuG6BMTCTo1xSK5SH+md11IypSPFDi42I4Jx pfucr/GvPBPaw8BBfCnUEZ0Pa2akQ+tTsPKy5nM7hU/91BOKLgiXlueAhAX/0CR396O4 qwflJhbAqvbwpXajarnJhZxMA1oledVs3/JbLajRhZEsLgQhtzUpKcnPYWBjscfh9bS3 AQy5z6zGnYs2AB76kT7MkhFOypZtPAcEQdH1+B2klv0W+Rl/uMiD7NAEyQ+CspnisMNr xF92bV4837YAJ6cxw3iX1y32EXhCDP0rxF9oKx+oBgavCsP7q7sXewQ7EH53YRQdpuAM as/Q== X-Gm-Message-State: AA6/9RltKrwZ2UE0jinAJ+1SfS8cK8DvcFa5aBqpX1C/WTsvst4lISsMdjQDhRmjBBKy8MkEmF8LSjNfx3Fbvg== X-Received: by 10.28.130.138 with SMTP id e132mr6459163wmd.110.1476973573223; Thu, 20 Oct 2016 07:26:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.40.69 with HTTP; Thu, 20 Oct 2016 07:26:12 -0700 (PDT) Received: by 10.28.40.69 with HTTP; Thu, 20 Oct 2016 07:26:12 -0700 (PDT) In-Reply-To: References: From: Theodore Vasiloudis Date: Thu, 20 Oct 2016 16:26:12 +0200 Message-ID: Subject: Re: Implicit class RichExecutionEnvironment - Can't use MlUtils.readLibSVM(path) in QUickStart guide To: dev@flink.apache.org Content-Type: multipart/alternative; boundary=001a11442faa2cbb1d053f4cb5af archived-at: Thu, 20 Oct 2016 14:27:24 -0000 --001a11442faa2cbb1d053f4cb5af Content-Type: text/plain; charset=UTF-8 This has to do with not doing a wildcard import of the Scala api, it was reported and already fixed on master [1] [1] http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/jira-Created-FLINK-4792-Update-documentation-QuickStart-FlinkML-td13936.html -- Sent from a mobile device. May contain autocorrect errors. On Oct 20, 2016 2:06 PM, "Thomas FOURNIER" wrote: > Hello, > > Following QuickStart guide in FlinkML, I have to do the following: > > val astroTrain:DataSet[LabeledVector] = MLUtils.readLibSVM(env, > "src/main/resources/svmguide1") > > Instead of: > > val astroTrain:DataSet[LabeledVector] = MLUtils.readLibSVM( > "src/main/resources/svmguide1") > > > Nonetheless, this implicit class in ml/packages > > implicit class RichExecutionEnvironment(executionEnvironment: > ExecutionEnvironment) { > def readLibSVM(path: String): DataSet[LabeledVector] = { > MLUtils.readLibSVM(executionEnvironment, path) > } > } > > > is supposed to pimp MLUtils in the way we want. > > Does it mean that RichExecutionEnvironment is not imported in the scope ? > What can be done to solve this ? > > > Thanks > > Regards > Thomas > --001a11442faa2cbb1d053f4cb5af--