DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'sampletest',
'OPTIONS': {
'driver': '/opt/cloudera/hiveodbc/lib/64/libclouderahiveodbc64.so',
'dsn': 'Hive1',
'host_is_server': True,
},
}
}
위의 내용은 Hive 데이터베이스와의 연결에 대한 장고 설정입니다. 가 발생장고 하이브 연결
django.db.utils.Error: ('HY000', u"[HY000] [Cloudera][Hardy] (80) Syntax or semantic analysis error thrown in server while executing query. Error message from server: Error while compiling statement: FAILED: ParseException line 1:7 character '@' not supported here\nline 1:8 character '@' not supported here (80) (SQLExecDirectW)")
쿼리 실제로 표준 쿼리 연결
동안 장고에 의해 트리거됩니다"SELECT @@TRANCOUNT"
입니다 : 나는 아래에 주어진 프로젝트를 실행할 때 여기에이 문제에 직면하고있다
해결책을 제안하십시오. 미리 감사드립니다.