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 D167B200C00 for ; Wed, 18 Jan 2017 16:26:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CE52D160B3A; Wed, 18 Jan 2017 15:26:52 +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 24200160B34 for ; Wed, 18 Jan 2017 16:26:51 +0100 (CET) Received: (qmail 83255 invoked by uid 500); 18 Jan 2017 15:26:50 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 83235 invoked by uid 99); 18 Jan 2017 15:26:49 -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; Wed, 18 Jan 2017 15:26:49 +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 618F31804B1 for ; Wed, 18 Jan 2017 15:26:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.35 X-Spam-Level: X-Spam-Status: No, score=-2.35 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_INFOUSMEBIZ=0.75, RP_MATCHES_RCVD=-2.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elyograg.org Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 7BZAE4LoX91x for ; Wed, 18 Jan 2017 15:26:46 +0000 (UTC) Received: from frodo.elyograg.org (frodo.elyograg.org [166.70.79.219]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 045F25F2EF for ; Wed, 18 Jan 2017 15:26:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id 14416236B for ; Wed, 18 Jan 2017 08:26:38 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:references:subject :subject:from:from:received:received; s=mail; t=1484753197; bh=d xCQvYqK9SXpzY5oDnESufuejZtMT2mRYcJn0x5Ank8=; b=mc9PyHVVsqXsOvn4b ajYPo7sajc1cXi3m+rQgG4s8vc8mZHZLeXCfHi7EtiqZL64pDCAns0I2QHBjGYr4 wmb+ZnrXPf90e3gm1EySuDIAtJoh5/sACrEro2bH/OFhmd8sqXP0t8Vwm4494hyi BooQaKDBJ5hAZuroctQnj4fdL8= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id C-nHXBCTeuru for ; Wed, 18 Jan 2017 08:26:37 -0700 (MST) Received: from [192.168.1.111] (111.int.elyograg.org [192.168.1.111]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id B8B4A2338 for ; Wed, 18 Jan 2017 08:26:37 -0700 (MST) From: Shawn Heisey Subject: Re: HELP!!- Error on authentication for mongodb in data-source-config.xml To: solr-user@lucene.apache.org References: Message-ID: <4dd76cf4-1870-91ca-830f-6d5560874347@elyograg.org> Date: Wed, 18 Jan 2017 08:26:37 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit archived-at: Wed, 18 Jan 2017 15:26:53 -0000 On 1/16/2017 1:04 PM, Abhijit Pawar wrote: > Hello, > > Need your help on one small problem I am facing in SOLR. > > I have added authentication for our mongodb database in data-source-config > file in SOLR. > rating,updatedAt,comparable,hide_price FROM > products':java.lang.RuntimeException: > db error [not authorized for query on *<>*.*<>*] I'll say the same thing I told you when you asked about this on the IRC channel: When accessed this way (via JDBC), JDBC is saying that the user isn't authorized. It doesn't have enough permissions to do the query that Solr asked it to do. It might be a result of misconfiguration, but since I'm unfamiliar with the driver, and the error message isn't complete, I cannot say. As for why you're running into this authorization issue, that is going to require the expertise of someone who is familiar with the JDBC driver for MongoDB. You're going to need to ask someone in the MongoDB world about this. The error message you've included here does not mean much to me. It would probably mean more to a MongoDB expert. Your Solr logfile should contain a much larger error message, one that includes a large java stacktrace. This will likely be helpful to whoever you contact for help on the issue. At the following URL, you can see a working configuration for DIH with MySQL -- the one that I use. This is not directly relevant for MongoDB, but maybe you can find something useful in the config: http://apaste.info/rG6yU I found a third-party project for importing from MongoDB into Solr: https://github.com/james75/SolrMongoImporter I do not know anything about this project, but it comes up in google search results, so hopefully it's a good project. Thanks, Shawn