Quantcast
Channel: Teradata Downloads - Connectivity
Viewing all 445 articles
Browse latest View live

Teradata ODBC 14.10 64 bit installation on Linux

$
0
0

Linux Environment Details:
Linux version 2.6.32-431.3.1.el6.x86_64 (mockbuild@x86-003.build.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Dec 13 06:58:20 EST 2013
 
Prerequisite: Download ODBC driver from Teradata Download and extract.
 
Steps for Teradata ODBC 64 bit install steps:
*****************************************************************************
1.  Log on to LINUX system as root user.
 
2.  Install the software (tdicu) as follows: (/home/akumar/teradata/tdodbc__linux_indep.14.10.00.00-1/tdicu)
 
      # rpm -ivh --nodeps tdicu1410-14.10.00.00-1.noarch.rpm
3. Install the software (TeraGSS) as follows: (/home/akumar/teradata/tdodbc__linux_indep.14.10.00.00-1/TeraGSS)
 
   # rpm -i TeraGSS_linux_x64-14.10.00.06-1.noarch.rpm
 
4. . Install the software (Teradata odbc) as follows (/home/akumar/teradata/tdodbc__linux_indep.14.10.00.00-1/tdodbc)
 
   # rpm -ivh tdodbc-14.10.00.00-1.noarch.rpm --nodeps
 
Validate the 64 bit ODBC Driver Installation:
[root@host tdodbc]# rpm -qa |grep .14.10.00
tdicu-14.10.00.00-1.noarch
tdodbc-14.10.00.00-1.noarch
TeraGSS_linux_x64-14.10.00.06-1.noarch
 

Forums: 

Too many SQL's from SP Business Objects Data Integrator

$
0
0

I am having an issue where a Transform request from the SAP BO ETL tool Data Integrator is creating additional SQL to the DBC (examples below).  We are using the native bulk load option (insert/select) via ODBC connection.  I want to eliminate the additional SQL's that are being generated.  Is there an option/setting in ODBC or Data Integrator that anyone knows of that generates these types of addiotnial overhead SQL?  It is causing unnecessary resource utilization.  Anyhelp is appreciated. 
Thanks,
Dennis

  1.  HELP SESSION
  1. HELP TABLE "mdm_nc"."NC_STANDARD_0007_MAP"
  1.  SELECT TRIM(TRAILING FROM COLUMNNAME) FROM DBC.COLUMNS WHERE  UPPER(TRIM( TRAILING FROM COLUMNNAME )) LIKE UPPER(TRIM(TRAILING FROM 'SOURCE_CODE')) ESCAPE '\' AND UPPER(TRIM(TRAILING FROM DATABASENAME )) LIKE UPPER(TRIM(TRAILING FROM 'MDM_NC')) ESCAPE '\' AND UPPER(TRIM(TRAILING FROM TABLENAME )) LIKE UPPER(TRIM(TRAILING FROM 'NC_STANDARD_0007_MAP')) ESCAPE '\' GROUP BY COLUMNNAME ORDER BY 1
Forums: 

Teradata ODBC Driver load error on Linux 64 bit (OBIEE Configuration) : Specified driver could not be loaded. (HY000)

$
0
0

 
Got the following error:

View Display Error

Odbc driver returned an error (SQLExecDirectW).
  Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: IM003 code: 0 message: [DataDirect][ODBC lib] Specified driver could not be loaded. (HY000)
Please have your System Administrator look at the log for more details on this error.

 
Checked driver load (ldd tdada.so) and found the following:

[biuser@linuxdev setup]$ ldd /opt/teradata/client/14.10/odbc_64/lib/tdata.so

 

        linux-vdso.so.1 =>  (0x00007fff70bff000)

 

        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fd7f2032000)

 

        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fd7f1e1c000)

 

        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd7f1bff000)

 

        libdl.so.2 => /lib64/libdl.so.2 (0x00007fd7f19fa000)

 

        librt.so.1 => /lib64/librt.so.1 (0x00007fd7f17f2000)

 

        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fd7f15d9000)

 

        libodbcinst.so => /biapps/obiee_home/Oracle_BI1/common/ODBC/Merant/5.3/lib/libodbcinst.so (0x00007fd7f13f2000)

 

        libddicu26.so => not found

 

        libtdparse.so => not found

 

        libicudatatd.so.46 => /usr/lib64/libicudatatd.so.46 (0x00007fd7f0ba7000)

 

        libicuuctd.so.46 => /usr/lib64/libicuuctd.so.46 (0x00007fd7f091a000)

 

        libm.so.6 => /lib64/libm.so.6 (0x00007fd7f0696000)

 

        libc.so.6 => /lib64/libc.so.6 (0x00007fd7f0301000)

 

        /lib64/ld-linux-x86-64.so.2 (0x00000031c8c00000)

 

        libARicu23.so => /biapps/obiee_home/Oracle_BI1/common/ODBC/Merant/5.3/lib/libARicu23.so (0x00007fd7ef6f0000)

 

        libstdc++.so.5 => /usr/lib64/libstdc++.so.5 (0x00007fd7ef414000)

 

[biuser@linuxdev setup]$

 

Made the following changes in user.sh file ( /instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup)

###############################################################

# Teradata: ODBC 64 bit Driver

###############################################################

LD_LIBRARY_PATH_64=/opt/teradata/client/14.10/odbc_64/lib:/opt/teradata/client/14.10/tdicu/lib64:$LD_LIBRARY_PATH_64

export LD_LIBRARY_PATH_64

 

 

LD_LIBRARY_PATH=/opt/teradata/client/14.10/odbc_64/lib:/opt/teradata/client/14.10/tdicu/lib64:$LD_LIBRARY_PATH

export LD_LIBRARY_PATH

 

Test the driver load after running bi-init.sh file (which internally calls user.sh)

[biuser@linuxdev setup]$ ldd /opt/teradata/client/14.10/odbc_64/lib/tdata.so
        linux-vdso.so.1 =>  (0x00007fffeafff000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f6091276000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f6091060000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6090e43000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f6090c3e000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f6090a36000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f609081d000)
        libodbcinst.so => /opt/teradata/client/14.10/odbc_64/lib/libodbcinst.so (0x00007f60905f8000)
        libddicu26.so => /opt/teradata/client/14.10/odbc_64/lib/libddicu26.so (0x00007f608f701000)
        libtdparse.so => /opt/teradata/client/14.10/odbc_64/lib/libtdparse.so (0x00007f608f57b000)
        libicudatatd.so.46 => /opt/teradata/client/14.10/tdicu/lib64/libicudatatd.so.46 (0x00007f608ed30000)
        libicuuctd.so.46 => /opt/teradata/client/14.10/tdicu/lib64/libicuuctd.so.46 (0x00007f608eaa3000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f608e81f000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f608e48a000)
        /lib64/ld-linux-x86-64.so.2 (0x00000031c8c00000)
 
The above error is gone after making this change!!

Forums: 

Teradata ODBC 14.10 64 bit configuration on Linux for OBIEE 11.1.1.7

$
0
0

1) Make sure you have drivers in the PATH
The below is the entry in the file:
user.sh file : (/instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup)

###############################################################

# Teradata: ODBC 64 bit Driver

###############################################################

LD_LIBRARY_PATH_64=/opt/teradata/client/14.10/odbc_64/lib:/opt/teradata/client/14.10/tdicu/lib64:$LD_LIBRARY_PATH_64

export LD_LIBRARY_PATH_64

 

 

LD_LIBRARY_PATH=/opt/teradata/client/14.10/odbc_64/lib:/opt/teradata/client/14.10/tdicu/lib64:$LD_LIBRARY_PATH

export LD_LIBRARY_PATH

 

2) Make changes in odbc.ini file :  (/instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup)

 

The below is the entry in the file:

 

TestDS=tdata.so

 

[TestDS]

Driver=/opt/teradata/client/14.10/odbc_64/lib/tdata.so

Description=Teradata Database

DBCName=127.0.0.1

LastUser=

Username=usr1

Password=pwd

Database=

DefaultDatabase=TESTDB

 

Forums: 

TPT TeraData Parallel Transporter API (x64) and Visual Studio 2012

$
0
0

Hi,
I am migrating a project from vs2008 to vs2012.
The project uses the TPT API.
It seems that the simple following code is crashing a test application when it's compiled with vs2012, but is working fine when compiled with VS2008.
(the test application is a basic cpp MFC dialog based application):

#include "connection.h"

...

void CTPTDlg::OnBnClickedOk()

{

    ncr::teradata::client::API::Connection* m_conn;

    m_conn = new ncr::teradata::client::API::Connection; // <==== CRASH HERE

    TD_OperatorType operatorType = TD_OperatorType::TD_LOAD;

    m_conn->AddAttribute(TD_SYSTEM_OPERATOR,operatorType);

....

 

If I add some message between each line (AfxMessageBox()), it work once, than it crashes again (with vs2012 only of course)

Is it a known issue please?

Do I need to stick with VS2008?

 

Thank you,

Olivier gg.
 

Forums: 

OBIEE Configuration : [113][State: 08001] [Teradata][Unix system error] 113 Socket error

$
0
0

Connection open failed:
[113][State: 08001] [Teradata][Unix system error]  113 Socket error - The Teradata server can't currently be reached over this network
Connection open failed
 
If you get this error, try to ping the database IP and check port (1025). If the database and port  connection is open this error will be gone.
To test database connection, use the following comand (For Obiee data source connectivity from Linux machine)
[biuser@linuxdev setup]$ nqcmd -d TeradataTestDS -u usr1 -p pwd1 -s myquery.sql > myresults.out

Forums: 

Teradata SQL Assistant with .net data provider error on start up

$
0
0

I recently format my computer and install TTU 13.1, but when I start up the Teradata SQL Assitant, it causes the error below:
 
"The . Net Data Provider for Teradata 13.01 or above was not found.
If you have installed a version of Teradata .Net higher than 13.01 then you did not install the optional Policy Files. In this case you can use Add or Remove Programs to modify the install of the .Net Provider for Teradata.
You will only be able to connect to Teradata throught ODBC."
 
I already installed newest versions but always happens the same error and reinstalled the .Net Data Provider and SQL Assitant.
What can I do?

Forums: 

OBIEE connection error to Teradata

$
0
0

Hello!
I have a strange situation with connection OBIEE to Teradata.

I have installed OBIEE 11g on a linux red hat x64. TTU 14.00.

When I try to make select from Teradata through BI i receive error

Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: IM003 code: 0 message: [DataDirect][ODBC lib] Specified driver could not be loaded. (HY000)

 
but all test connection through nqcmd, ssgodb or tdxodbc were completed successfully
/tdxodbc
 
Enter Data Source Name: test
Enter UserID: guest
Enter Password:
 
Connecting with SQLConnect(DSN=test,UID=guest,PWD=*)...
 
.....ODBC connection successful.
 
ODBC version        = -03.52.0000-
DBMS name           = -Teradata-
DBMS version        = -14.00.0501  14.00.05.01-
Driver name         = -tdata.so-
Driver version      = -14.00.00.03-
Driver ODBC version = -03.51-
 
(type quit to terminate adhoc)
Enter SQL string : quit
 
'quit' command detected
 
ODBC connection closed.
 
 
./nqcmd -d tera -u guest -p guest
 
-------------------------------------------------------------------------------
          Oracle BI ODBC Client
          Copyright (c) 1997-2013 Oracle Corporation, All rights reserved
-------------------------------------------------------------------------------
 
 
 
        [T]able info
        [C]olumn info
        [D]ata type info
        [F]oreign keys info
        [P]rimary key info
        [K]ey statistics info
        [S]pecial columns info
        [Q]uery statement
Select Option:
 
 
./ssgodbc.linux64 -d test -u guest -p guest -v
Connected
ODBC version        = -03.52.0000-
DBMS name           = -Teradata-
DBMS version        = -14.00.0501  14.00.05.01-
Driver name         = -tdata.so-
Driver version      = -14.00.00.03-
Driver ODBC version = -03.51-
 
Enter SQL string: quit;
 
ODBC connection closed.

 

Forums: 

Escape characters in teradata jdbc connection string

$
0
0

I have a teradata database name that contains a dash character -.
Searched the web but in vain. Does somebody know how can you escape the special characters in jdbc connection string? The string looks as follows:
"jdbc:teradata://HostName/DATABASE=Database-Name"
When I create a connection with this url I get syntax error. Also tried to put database parameter in single or double quotes, and to surround the special charachers with { }.
Here https://jira.talendforge.org/browse/TDI-18863 it is proposed to this way:
"jdbc:teradata://HostName/'DATABASE=Database-Name'"
This unfortunately ignores the database parameter.
Thanks for help!

 

Tags: 
Forums: 

Informatica Teradata Connection

$
0
0

Hi everybody.
I have installed teradata express 14.10 edition in vmware player. I can log on using dbc/dbc from bteq but I have no 
idea how to connect teradata sql assistant to database. Should I install sql assistant in vmware player or can I install into local
windows 7 and connecct ? And one more question related to informatica, does anyone know how can I create teradata databaase connection
in informatica. I installed teradata odbc driver in my computer and tried to create connection between informatica and
teradata but got error at data source. The environment is informatica 9.5.1 is install in my local machine windows 7 and teradata
express edition is vmware player. I am quit new to teradata but very good in Oracle, Sql server, DB2 etc. Once set up ready I could
go ahead but can't start.
Sincerly,
Thank You

Forums: 

Teradata Service control is running but not connecting to database

$
0
0

Hi All,
         I'm new to teradata.my issue is - I installed teradata 13.its worked normally for few days later i installed informatica in my machine,from that onwards the teradata service control is taking very long time to run,after  teradata is in running state then i tried to connect to datasource in Sql assistant its not connecting and showing the error of login connect timed out or failed. so pls can any one help me to solve this issue.
Thanks & regards,
Rajkumar.

Forums: 

Reading large table is slow

$
0
0

Hi,
              I have a table that has 80,000 records i have to read all data and I cannot filter records. It takes over 90 seconds. This is way too slow. I tried with setFetchSize of 50,100,1000,10000. Nothing helped.
     Connection conn = getJdbcTemplate().getDataSource().getConnection();

    conn.setAutoCommit(false);

    PreparedStatement stmt = conn.prepareStatement(sqlGetAllData);//, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

    stmt.setFetchSize(50);

 

What is the best way to retrieve large tables within 15-30 seconds.

 

Thanks,

Bharani

Forums: 

ODBC.INI

$
0
0

Hi Guys,
i got some problems trying to edit the odbc.ini file on an AIX server. what are the parameters to edit?? 

[Teradata]

Driver=/sdap61/lib/XEtera25.so

Description=IBM Corp. 6.1 Teradata

AccountString=

AuthenticationDomain=

AuthenticationPassword=

AuthenticationUserid=

CharacterSet=ASCII

DBCName=<Teradata_server>

Database=

EnableDataEncryption=0

EnableExtendedStmtInfo=0

EnableLOBs=1

EnableReconnect=0

IntegratedSecurity=0

LoginTimeout=20

LogonID=

MapCallEscapeToExec=0

MaxRespSize=8192

Password=

PortNumber=1025

PrintOption=N

ProcedureWithSplSource=Y

ReportCodePageConversionErrors=0

SecurityMechanism=

SecurityParameter=

ShowSelectableTables=1

TDProfile=

TDRole=

Forums: 

Exceute Stored Procedure from SSIS thru .NET Data Provider for Teradata 14.10 5510 error

$
0
0

Hi, I am trying to execute a stored procedure from Visual Studio 2012 using the .Net drivers. I am connecting thru LDAP, the character set is UTF8, session mode is ANSI.
In Teradata studio, after running
help procedure xxx.xxxx attributes;
I can see Character set = UTF8  ; platform is UNIX, collation is ASCII, transaction semantics is ANSI.
I can't set the TMODE In ADO connectin string.
There are no parameters, just using Sqlstatement call xxx.samplesp()
With isQuery storedprocedure set to true, no resultset, sqlsourcetpye direct.
It jsut returns with [5510] Invalid session mode for procedure execution. Have tried a few settings
 
Any ideas please?
 
 

Forums: 

.net 14.11.00.01 not showing tables/view list in SSIS

$
0
0

have .net installed successfully. Can connect just fine , but when setting up a connection in SSIS is will not popluate the table/view list dropdown box.
 
I do have use x views set to false and no deafault database, so not sure why it would not pull data dictionary info
 
thanks
 
Dave

Tags: 
Forums: 

data format change of records in VBA recordset while fetching from Teradata

$
0
0

Hi,
 
As we know, we have facility to replace NULL values with anystring we want, in Teradata SQL Assistant.
The problem with me is I am fetching the data in a recordset in VBA from MS Excel. In this recordset I am not able to differentiate between NULL and Blank values.
I want to make it a fast processing thing thus using copyrecordset as follows:
objconn.Open "Provider=MSDASQL.1;Password=" + passwd + ";Persist Security Info=True;User ID=" + usrid + ";Data Source=" + server + "   "
objconn.commandtimeout = 0
sqlstr = concatenate() 'concatenating the SQL pasted in multiple lines
objrs.Open sqlstr, objconn
xlWs.Cells(2, 1).CopyFromRecordset objrs
 
As an alternate we can check for nulls in each row and column but it becomes very slow (as follows)
'objrs.MoveFirst
'Var = 2
'While Not objrs.EOF
'    For iCol = 1 To colcount
'        Val1 = objrs(objrs.Fields(iCol - 1).Name).Value
'        If IsNull(Val1) Then
'            Val1 = "NULL"
'        End If
'        xlWs.Cells(Var, iCol).Value = Val1
'    Next
'    objrs.MoveNext
'    Var = Var + 1
'Wend
Can someone help me in making this thing a fast working.
 
I posted this in connectivity section as I wanted to know is there any way we can activate the "facility to replace NULL values with any string we want", from VBA by doing something on the connection. Any argument or anything?
 
Please revert
 

Forums: 

Application not started because all AMPs are in NewProc or Fatal State

$
0
0

Hello all,
When attempting to connect to Teradata 14.10, I am receiving the following error message:
Warning: RDBMS Crashed or Sessions reset. Recovery in Progress
After ctrl-c'ing a coupe of times, I get sent back to the BASH prompt.
While attempting to connect, I tailed the messages log in /var/log....and found the following lines..
....
Apr 12 11:59:14 prteradata Teradata[5783]: INFO: Teradata: 13815 #Event number 33-13815-00 (severity 10, category 12)
Application not started because all AMPs are in NewProc or Fatal state.
Apr 12 12:08:11 prteradata Teradata[6555]: INFO: Teradata: 15070 #PDISK 1 has incorrect device number 0 in its tag
Apr 12 12:08:11 prteradata Teradata[6555]: INFO: Teradata: 15070 #PDISK 0 has incorrect device number 1 in its tag

So, I read somewhere to run vprocgdo...and received the following results...
Vpr:  VprocID Clq Type Movable NodeID Vdisk  CUA HGID Slot Status  Err
    0:      0   0    1    Y    001-01     0   -1   -1   -1 FATAL    E
    1:      1   0    1    Y    001-01     1   -1   -1   -1 FATAL    E
    2:  16383   0    2    Y    001-01 16383   -1    1   56 ONLINE   N
    3:   8192   0    3    N    001-01  8192   -1    1   56 ONLINE   N
    4:   9215   0    4    N    001-01  9215   -1    1   56 ONLINE   N
    5:  10237   0    5    Y    001-01 10237   -1   -1   -1 ONLINE   N
    6:  10238   0    5    Y    001-01 10238   -1   -1   -1 ONLINE   N
 
...df -h shows....
ilesystem            Size  Used Avail Use% Mounted on
/dev/sda2              14G  6.8G  6.4G  52% /
devtmpfs              873M  132K  873M   1% /dev
tmpfs                 873M  100K  873M   1% /dev/shm
/dev/sda5             2.0G  564M  1.4G  30% /var
/dev/sda7              41G  734M   38G   2% /var/opt/teradata
lx_share              466G  142G  325G  31% /media/sf_lx_share

Can anyone on the forum point me in the right direction on how to correct these fatals?
 
FYI. I come from a heavy Oracle/MySQL Administration background and am now trying to learn Teradata. So, these errors are not in a prod env, however, I would like to get past
these so that I can get acquainted with the internals of Teradata.
Thanks in advance,
pruiz
 
 
 
 

Forums: 

DBD::ODBC Connects from command line, not thru crontab

$
0
0

I'm hoping someone can help with this DBI error.  I have installed the perl DBD::ODBC driver into a custom directory and everything works fine when the scripts get kicked off via the command line.  At the top of each perl script I add the 'use lib pathto dbd::odbc'.  However when running in crontab the connect is having an issue.  It was first complaining about 
System information file not found. Please check the ODBCINI environment variable
So I fixed that by adding the envrionmental variable to the script.  I've also added 'LD_LIBRARY_PATH' and 'PERL5LIB' entries to each script as well, however I keep getting this error:

DBI Error => 1

DBI Errstr => 523 80 (SQL-82)

DBI State => S1000

 

Since it works fine from command line runs I'm assuming it has to have something to do with an environmental variable.  But in adding these I'm not sure what else it could be?  Please let me know if you wanted me to post anything for diags.  Thanks.
 

Forums: 

.NET data provider - cant see in visual studio

$
0
0

Hi,
I have installed the .Net Data Provider (http://downloads.teradata.com/download/connectivity/net-data-provider-for-teradata) on 2 computers, as an Administrator. I tried 3 versions of VS - VS2013 Pro, VS2013 WD Express, VS2010 WD Express.
I found one tutorial, so I know that what Im trying to achieve should be possible :)
I am developing an ASP.Net MVC application and when I want to create the ado.net entity data model and try to generate it from the database, I dont see there the Teradata .NET provider. I have installed it many times, restarted the computer, tried to add it in server explorer as a data connection, but nothing. I cant see it anywhere.
Anyone has any suggestions? It will be probably something stupid, but I cant figure it out, found only 1 similar Q on stackoverflow, but theres no answer...
Thank you :)

Forums: 

Import data from Teradata 14.0 to Hive Table

$
0
0

Hi All,
I am using teradata-connector-1.2.1 with the following versions:
->Teradata 14.0
->HDP 2.0(Hadoop 2.1.0.2.0.5.0-67)
->Hive 0.11

I am trying to import data from teradata tables to Hive.
 
/*Created table and inserted a row in teradata*/
CREATE MULTISET TABLE example3_td ( c1 INT,c2 VARCHAR(100));
INSERT INTO example3_td VALUES (3,'bar');
/*Created similar table in Hive*/ 
CREATE TABLE example3_hive (h1 INT, h2 STRING) STORED AS RCFILE;
 
Following are the set of commands I used after following the documentation:
export HIVE_HOME=/home/nirmal/hadoop/hive-0.11.0
export USERLIBTDCH=/home/nirmal/hadoop/TeradataConnectors/teradata-connector-1.2.1/lib/teradata-connector-1.2.1.jar
 
export HADOOP_CLASSPATH=$HIVE_HOME/lib/hive-metastore-0.11.0.jar:$HIVE_HOME/lib/libthrift-0.9.0.jar:$HIVE_HOME/lib/hive-exec-0.11.0.jar:$HIVE_HOME/lib/libfb303-0.9.0.jar:$HIVE_HOME/lib/jdo2-api-2.3-ec.jar:$HIVE_HOME/conf:$HIVE_HOME/lib/slf4j-api-1.6.1.jar:$HIVE_HOME/lib/antlr-runtime-3.4.jar:$HIVE_HOME/lib/datanucleus-core-3.0.9.jar:$HIVE_HOME/lib/datanucleus-rdbms-3.0.8.jar:$HIVE_HOME/lib/datanucleus-api-jdo-3.0.7.jar:$HIVE_HOME/lib/commons-dbcp-1.4.jar:$HIVE_HOME/lib/commons-pool-1.5.4.jar:$HIVE_HOME/lib/hive-cli-0.11.0.jar
 
export HIVE_LIB_JARS=$HIVE_HOME/lib/hive-metastore-0.11.0.jar,$HIVE_HOME/lib/libthrift-0.9.0.jar,$HIVE_HOME/lib/hive-exec-0.11.0.jar,$HIVE_HOME/lib/libfb303-0.9.0.jar,$HIVE_HOME/lib/jdo2-api-2.3-ec.jar,$HIVE_HOME/lib/slf4j-api-1.6.1.jar,$HIVE_HOME/lib/hive-cli-0.11.0.jar
 
hadoop jar $USERLIBTDCH com.teradata.hadoop.tool.TeradataImportTool -libjars $HIVE_LIB_JARS  -classname com.teradata.jdbc.TeraDriver -url jdbc:teradata://192.168.199.129/DATABASE=airlinesuser -username airlinesuser -password airlinesuser -jobtype hive -fileformat rcfile -sourcetable example3_td -nummappers 1 -targettable example3_hive

 
radata://192.168.199.129/DATABASE=airlinesuser -username airlinesuser -password airlinesuser -jobtype hive -fileformat rcfile -sourcetable example3_td -nummappers 1 -targettable example3_hive
14/04/10 21:14:56 INFO tool.TeradataImportTool: TeradataImportTool starts at 1397144696332
14/04/10 21:14:57 WARN conf.Configuration: mapred.map.tasks.speculative.execution is deprecated. Instead, use mapreduce.map.speculative
14/04/10 21:14:57 WARN conf.Configuration: mapred.max.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.maxsize
14/04/10 21:14:57 WARN conf.Configuration: mapred.min.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize
14/04/10 21:14:57 WARN conf.Configuration: mapred.min.split.size.per.rack is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.rack
14/04/10 21:14:57 WARN conf.Configuration: mapred.min.split.size.per.node is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.node
14/04/10 21:14:57 WARN conf.Configuration: mapred.reduce.tasks is deprecated. Instead, use mapreduce.job.reduces
14/04/10 21:14:57 WARN conf.Configuration: mapred.reduce.tasks.speculative.execution is deprecated. Instead, use mapreduce.reduce.speculative
14/04/10 21:14:57 WARN conf.Configuration: org.apache.hadoop.hive.conf.LoopingByteArrayInputStream@3eafdb52:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval;  Ignoring.
14/04/10 21:14:57 WARN conf.Configuration: org.apache.hadoop.hive.conf.LoopingByteArrayInputStream@3eafdb52:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts;  Ignoring.
14/04/10 21:14:57 ERROR tool.TeradataImportTool: com.teradata.hadoop.exception.TeradataHadoopException: Hive current user directory not exists
at com.teradata.hive.job.TeradataHiveImportJob.beforeJob(TeradataHiveImportJob.java:148)
at com.teradata.hadoop.tool.TeradataJobRunner.runImportJob(TeradataJobRunner.java:118)
at com.teradata.hadoop.tool.TeradataImportTool.run(TeradataImportTool.java:41)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
at com.teradata.hadoop.tool.TeradataImportTool.main(TeradataImportTool.java:464)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
 
14/04/10 21:14:57 INFO tool.TeradataImportTool: job completed with exit code 25008
nirmal@nirmal-Vostro-3560 ~/hadoop/hive-0.12.0 $ 
I Hive I see the table being created in the default database/schema:
hive> show tables;
OK
example3_hive
Time taken: 5.831 seconds, Fetched: 1 row(s)
hive> 
Kindly help me if I am missing something.
Thanks,
-Nirmal

Forums: 
Viewing all 445 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>