Return-Path: X-Original-To: apmail-sqoop-dev-archive@www.apache.org Delivered-To: apmail-sqoop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5EC991F6 for ; Tue, 17 Apr 2012 07:10:48 +0000 (UTC) Received: (qmail 68796 invoked by uid 500); 17 Apr 2012 07:10:48 -0000 Delivered-To: apmail-sqoop-dev-archive@sqoop.apache.org Received: (qmail 68646 invoked by uid 500); 17 Apr 2012 07:10:45 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 68612 invoked by uid 99); 17 Apr 2012 07:10:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 07:10:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bhavesh25shah@gmail.com designates 209.85.216.51 as permitted sender) Received: from [209.85.216.51] (HELO mail-qa0-f51.google.com) (209.85.216.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 07:10:38 +0000 Received: by qaea16 with SMTP id a16so206398qae.3 for ; Tue, 17 Apr 2012 00:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KDvq42N0Ksb7Fbng7usymtgAKGOtiHoiyOFI78Gm/5k=; b=d4kMi5v69WeMclQZ/1Q9B+SkheSKMuTfN7fAI0Kc6UmGYhkV28djNDKQjxgHMMSyiw nmFb5kKKyjRHo4Jhrhdsz5Mt9sOpX3n9V4pKC+CDDsc8Ztc3Fvz72mBn9mtgQEhLlcev /3yBzTyJU1M/QaXoEH+/9jGIH258mL2tLhOB+pRQmaXr+SrGrjCxisMW7VZGGOOvoC6Q t2hB9gUMZ8hy0lUGFgLx5hd/sdLTKkiWg8ESFBLnqaDljwAx7gZv0oWMqsJGYUgEFF1m OvEfBHyNslZr504rAB0YKMaUYFppAykxbN6OZQNUyfrk5w1cdF51WVY/WQN4X7/mn7UY 1w/g== MIME-Version: 1.0 Received: by 10.229.106.2 with SMTP id v2mr5902011qco.29.1334646617519; Tue, 17 Apr 2012 00:10:17 -0700 (PDT) Received: by 10.229.125.144 with HTTP; Tue, 17 Apr 2012 00:10:17 -0700 (PDT) In-Reply-To: <1821444135.36755.1333087712253.JavaMail.tomcat@hel.zones.apache.org> References: <1821444135.36755.1333087712253.JavaMail.tomcat@hel.zones.apache.org> Date: Tue, 17 Apr 2012 12:40:17 +0530 Message-ID: Subject: Re: [jira] [Commented] (SQOOP-469) Can we fire the trigger in SQL Server after exporting the data from HIVE using SQOOP From: Bhavesh Shah To: dev@sqoop.apache.org Content-Type: multipart/alternative; boundary=00235429cdbc89b91004bddaa19b X-Virus-Checked: Checked by ClamAV on apache.org --00235429cdbc89b91004bddaa19b Content-Type: text/plain; charset=ISO-8859-1 I have created the trigger in SQL and it works for me. For every sqoop-export, I am able to fire the trigger and I getting the result as expected. On Fri, Mar 30, 2012 at 11:38 AM, Jarek Jarcec Cecho (Commented) (JIRA) < jira@apache.org> wrote: > > [ > https://issues.apache.org/jira/browse/SQOOP-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242092#comment-13242092] > > Jarek Jarcec Cecho commented on SQOOP-469: > ------------------------------------------ > > Actually I also do have a need to execute some code (stored procedure) on > database side before and after each sqoop import. > > I'm currently doing that by additional actions in my oozie workflow that > is driving the import. It might be beneficial to put something like > "callbacks" into sqoop that user could use to execute arbitrary code as he > needs at given points (for example "before import", "after import"). > > Jarcec > > > Can we fire the trigger in SQL Server after exporting the data from HIVE > using SQOOP > > > ------------------------------------------------------------------------------------ > > > > Key: SQOOP-469 > > URL: https://issues.apache.org/jira/browse/SQOOP-469 > > Project: Sqoop > > Issue Type: New Feature > > Components: connectors/sqlserver > > Affects Versions: 1.3.0 > > Environment: Operating System - Ubuntu-11.10 > > Softwares Used - Sqoop, Hive, Hadoop, (SQL Server in Window 7) > > Reporter: Bhavesh Shah > > Labels: hive, ms-sql, sqoop > > Original Estimate: 168h > > Remaining Estimate: 168h > > > > I have implemented some task in Hive and wanted to export a table from > Hive into SQL Server using SQOOP. > > When table gets exported from Hive to SQL Server, I want to fire the > trigger in SQL Server. > > Is it possible to fire the trigger in SQL Server? > > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA > administrators: > https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa > For more information on JIRA, see: http://www.atlassian.com/software/jira > > > -- Regards, Bhavesh Shah --00235429cdbc89b91004bddaa19b--