Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 505401734F for ; Wed, 14 Jan 2015 17:30:36 +0000 (UTC) Received: (qmail 3339 invoked by uid 500); 14 Jan 2015 17:30:37 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 3309 invoked by uid 500); 14 Jan 2015 17:30:37 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 3290 invoked by uid 99); 14 Jan 2015 17:30:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2015 17:30:37 +0000 Date: Wed, 14 Jan 2015 17:30:37 +0000 (UTC) From: "Joshua McKenzie (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8292) From Pig: org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable: [cassandra.config]. Please prefix the file with file:/// for local files or file:/// for remote files. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joshua McKenzie updated CASSANDRA-8292: --------------------------------------- Attachment: 8292_v2.txt The removal of JVMStabilityInspector looks good. I've attached a v2 that's modified to remove the extra imports that were also added on your patch.txt. I should have thought of this when we put in the original fix - sorry about that! > From Pig: org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable: [cassandra.config]. Please prefix the file with file:/// for local files or file:/// for remote files. > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: CASSANDRA-8292 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8292 > Project: Cassandra > Issue Type: Bug > Reporter: Brandon Kearby > Assignee: Joshua McKenzie > Fix For: 2.1.3 > > Attachments: 8292_v1.txt, 8292_v2.txt, patch.txt > > > Getting this error from Pig: > Looks like the client side hadoop code is trying to locate the cassandra.yaml. > {code} > ERROR org.apache.cassandra.config.DatabaseDescriptor - Fatal configuration error > org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable: [cassandra.config]. Please prefix the file with file:/// for local files or file:/// for remote files. Aborting. > at org.apache.cassandra.config.YamlConfigurationLoader.getStorageConfigURL(YamlConfigurationLoader.java:73) > at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84) > at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:158) > at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:133) > at org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable(JVMStabilityInspector.java:54) > at org.apache.cassandra.hadoop.HadoopCompat.(HadoopCompat.java:135) > at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:120) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigInputFormat.getSplits(PigInputFormat.java:273) > at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:1014) > at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1031) > at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:172) > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:943) > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:896) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332) > at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:896) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:531) > at org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.submit(ControlledJob.java:318) > at org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.startReadyJobs(JobControl.java:238) > at org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.run(JobControl.java:269) > at java.lang.Thread.run(Thread.java:745) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher$1.run(MapReduceLauncher.java:260) > Expecting URI in variable: [cassandra.config]. Please prefix the file with file:/// for local files or file:/// for remote files. Aborting. > Fatal configuration error; unable to start. See log for stacktrace. > {code} > Sample Pig Script: > {code} > grunt> sigs = load 'cql://socialdata/signal' using org.apache.cassandra.hadoop.pig.CqlNativeStorage(); > grunt> a = limit sigs 5; > grunt> dump a; > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)