From books2009 at iks-systeme.de Tue Jan 23 11:10:27 2018 From: books2009 at iks-systeme.de (Birgit Kruckewitt) Date: Tue, 23 Jan 2018 17:10:27 +0100 Subject: [DB-SIG] PEP 249, Connect with delegation token Message-ID: <6AF38BB8-0F25-4AE0-914B-D6109DE1E61F@iks-systeme.de> Hi, Can I make a connect with this python db api with delegation token? In Java its like this (e.g. Cloudera jdbc driver): "jdbc:hive2://localhost:10000;AuthMech=6;DelegationToken=" + delegationToken; Connection tokenConnection = DriverManager.getConnection (tokenConnectionString) Thanks Birgit -------------- next part -------------- An HTML attachment was scrubbed... URL: From mal at egenix.com Thu Jan 25 06:55:05 2018 From: mal at egenix.com (M.-A. Lemburg) Date: Thu, 25 Jan 2018 12:55:05 +0100 Subject: [DB-SIG] PEP 249, Connect with delegation token In-Reply-To: <6AF38BB8-0F25-4AE0-914B-D6109DE1E61F@iks-systeme.de> References: <6AF38BB8-0F25-4AE0-914B-D6109DE1E61F@iks-systeme.de> Message-ID: <0788de2e-2a59-e1f9-7500-b52d114872b4@egenix.com> Hi Birgit, if you are using zxJDBC on Jython to connect to the database, you should be able to use the same (or a similar) connection string. On CPython, you will either have to use a custom DB API compatible interface module for Hive2 or go with an ODBC module and access Hive2 using an ODBC driver for your platform. As long as the ODBC driver supports these tokens a well, you should be fine. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Experts (#1, Jan 25 2018) >>> Python Projects, Coaching and Consulting ... http://www.egenix.com/ >>> Python Database Interfaces ... http://products.egenix.com/ >>> Plone/Zope Database Interfaces ... http://zope.egenix.com/ ________________________________________________________________________ ::: We implement business ideas - efficiently in both time and costs ::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ http://www.malemburg.com/ On 23.01.2018 17:10, Birgit Kruckewitt wrote: > ? > > ? > > ? > > Hi, > > ? > > Can I make a connect ?with this python db api with delegation token? > > In Java its like this ?(e.g. Cloudera jdbc driver):? > > ? > > "jdbc:hive2://localhost:10000;AuthMech=6;DelegationToken= > " + > delegationToken; Connection tokenConnection = > DriverManager.getConnection (tokenConnectionString) > > ? > > Thanks > > Birgit > > ? > > > > _______________________________________________ > DB-SIG maillist - DB-SIG at python.org > https://mail.python.org/mailman/listinfo/db-sig >