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 4FADE200B2A for ; Fri, 10 Jun 2016 22:39:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4E3D7160A5B; Fri, 10 Jun 2016 20:39: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 9F283160A38 for ; Fri, 10 Jun 2016 22:39:22 +0200 (CEST) Received: (qmail 52473 invoked by uid 500); 10 Jun 2016 20:39:21 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 52367 invoked by uid 99); 10 Jun 2016 20:39:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 20:39:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 39B172C1F6C for ; Fri, 10 Jun 2016 20:39:21 +0000 (UTC) Date: Fri, 10 Jun 2016 20:39:21 +0000 (UTC) From: "Mike Drob (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-3923) VFS ClassLoader doesnt' work with KeywordExecutable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Jun 2016 20:39:23 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-3923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15325250#comment-15325250 ] Mike Drob commented on ACCUMULO-3923: ------------------------------------- Tried testing this today, had a lot of trouble getting things working. I was using CDH5.7 Some issue that I noticed: * It is not clear at all what {{general.vfs.classpaths}} value is supposed to be. A directory? A java classpath style wildcard? A regex for jars? ** I tried this as a directory and it didn't seem to pick up the jars. ** I tried this as a regex or single jar and the process became unresponsive. * I tested this by moving {{accumulo-shell}} jar to hdfs and then running {{bin/accumulo help}} and observing that it did not include the shell command. * When running {{accumulo classpath}} I got a {{Level 5: Mystery Classloader (someone probably added a classloader and didn't update the switch statement in org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader) VFS classpaths items are:}}. There were no classpath items here, but maybe the updates to the VFS loader slipped in something new. Are these App Context ClassLoaders? Lots of these probably need to be broken out into their own issues, but overall this is screaming like something that is too big to fix in 1.7.2. Assigning this to you, [~dlmarion] to triage as appropriate. > VFS ClassLoader doesnt' work with KeywordExecutable > --------------------------------------------------- > > Key: ACCUMULO-3923 > URL: https://issues.apache.org/jira/browse/ACCUMULO-3923 > Project: Accumulo > Issue Type: Bug > Reporter: Josh Elser > Priority: Critical > Fix For: 1.7.3, 1.8.0 > > > Trying to make the VFS classloading stuff work and it doesn't seem like ServiceLoader is finding any of the KeywordExecutable implementations. > Best I can tell after looking into this, VFSClassLoader (created by AccumuloVFSClassLoader) has all of the jars listed as resources, but when ServiceLoader tries to find the META-INF/services definitions, it returns nothing, and thus we think the keyword must be a class name. Seems like a commons-vfs bug. -- This message was sent by Atlassian JIRA (v6.3.4#6332)