sqoop导入到配置单元表错误(sqoop import to hive table error)
您好,我尝试将as400表插入到配置单元表中,因此我创建了一个具有as400表的相同架构的配置单元表,但我添加了一个已处理的列(时间戳),这是我的配置单元表:
CREATE external TABLE IF NOT EXISTS default.AS400TEST ( One INT, Two STRING, .. N INT ) PARTITIONED BY (processedate TIMESTAMP) STORED AS TEXTFILE location '/tmp/AS400TEST;
我运行这个sqoop命令:
sqoop import --verbose --driver $DRIVER_CLASS --connect $URL --username $LOGIN --password $PASSWORD \ --table $TABLE \ --target-dir $DIR \ -m 1 --hive-import --hive-table default.AS400TEST \ --hive-partition-key "processedate"
我的问题是,地图保持在0%以上超过30分钟,我杀了这份工作。 我需要改变什么吗?
另一个问题:如何在sqoop中插入列时间戳?
Hello i try to insert as400 table to hive table, so i create a hive table with the same schema of the as400 table but i add a columns processedate (timestamp) this is my hive table:
CREATE external TABLE IF NOT EXISTS default.AS400TEST ( One INT, Two STRING, .. N INT ) PARTITIONED BY (processedate TIMESTAMP) STORED AS TEXTFILE location '/tmp/AS400TEST;
I run this sqoop command:
sqoop import --verbose --driver $DRIVER_CLASS --connect $URL --username $LOGIN --password $PASSWORD \ --table $TABLE \ --target-dir $DIR \ -m 1 --hive-import --hive-table default.AS400TEST \ --hive-partition-key "processedate"
My problem is that the map remains on 0% for more than 30 min and i kill the job. did i need to change Something?
Another question: how to insert the column timestamp with sqoop?
原文:https://stackoverflow.com/questions/50064569
最满意答案
我解决这个问题的方式是我改变了FBDialog.m来忽略这样的错误代码-999
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { // 102 == WebKitErrorFrameLoadInterruptedByPolicyChange NSLog(@"FBDialog webView didFailLoadWithError:%@ %d",error.domain,error.code); if ([error.domain isEqualToString:@"NSURLErrorDomain"] && error.code == -999) return; if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102) return; [self dismissWithError:error animated:YES]; }
有趣的是,FBLoginDialog已经忽略了错误代码102和-999,而FBDialog只忽略了102。请参阅https://github.com/facebook/facebook-ios-sdk/blob/master/src/FBLoginDialog。 M#L85
我不知道这是否是最好的解决方案,但我对此稍微有点自信,因为另一块Facebook sdk代码已经忽略了同样的错误。
The way I fixed this was I changed FBDialog.m to ignore error code -999 like this
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { // 102 == WebKitErrorFrameLoadInterruptedByPolicyChange NSLog(@"FBDialog webView didFailLoadWithError:%@ %d",error.domain,error.code); if ([error.domain isEqualToString:@"NSURLErrorDomain"] && error.code == -999) return; if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102) return; [self dismissWithError:error animated:YES]; }
What's interesting is that FBLoginDialog was already ignoring both error code 102 and -999 whereas FBDialog was only ignoring 102. See for yourself: https://github.com/facebook/facebook-ios-sdk/blob/master/src/FBLoginDialog.m#L85
I don't know if this is the best solution, but I feel slightly more confident about it since another piece of the Facebook sdk code already ignores the same error.
相关问答
更多-
您正在将%@&format=json&nojsoncallback=1到connectToService:的网址中,并且该新网址会生成网页,而不是您期望的JSON(即http://thetrouthunter.com/SVLocationsAPI.php&format=json&nojsoncallback=1 )。 记录来自HTTP请求的实际结果可能会很有用,以便您可以调试此操作直到获得JSON(即在调用序列化函数之前)。 You are adding %@&format=json&nojsoncallb ...
-
如何在iPhone 3.0操作系统中修复NSURLErrorDomain错误-999(How do I fix NSURLErrorDomain error -999 in iPhone 3.0 OS)[2021-12-27]
我能在这里找到答案。 此线程包含此错误的描述: This error may occur if an another request is made before the previous request of WebView is completed... 我通过忽略这个错误,让webview继续加载,从而解决了这个问题。 if ([error code] != NSURLErrorCancelled) { //show error alert, etc. } I was able to find th ... -
您可以选择Native iOS App部分,您可以在其中找到Bundle ID You can select Native iOS App section, where you can find Bundle ID
-
错误域= NSURLErrorDomain代码= -1017“操作不能(Error Domain=NSURLErrorDomain Code=-1017 "The operation couldn’t be)[2022-08-02]
你的JSON参数有问题: kCFURLErrorCannotParseResponse = -1017 You have something wrong with your JSON parameters: kCFURLErrorCannotParseResponse = -1017 -
由于受欢迎的要求,这是解决方案: 当您尝试保存文件的目录不存在时,会发生这种情况。 绕过它的方法是在保存时创建检查,创建尚不存在的目录: 即 if (![[NSFileManager defaultManager] fileExistsAtPath:someDirPath]) { NSError *error = nil; if (![[NSFileManager defaultManager] createDirectoryAtPath:someDirPath withIntermedia ...
-
我解决这个问题的方式是我改变了FBDialog.m来忽略这样的错误代码-999 - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { // 102 == WebKitErrorFrameLoadInterruptedByPolicyChange NSLog(@"FBDialog webView didFailLoadWithError:%@ %d",error.domain,error.code); if ( ...
-
当我从Cordova(PhoneGap)2.2升级到2.7时,我遇到了类似的错误。 我遇到的问题是Cordova 2.7在启动过程中没有正确处理客户端重定向。 我的解决方案是修改CordovaLib/Classes/CDVWebViewDelegate.m来处理重定向情况。 这是我的拉动请求: https://github.com/apache/cordova-ios/pull/57/files I had a redirect for location-saving, which isn't really ...
-
显然,崩溃与NSURLErrorDomain没有任何关系。 我设法避免NSURLErrorDomain等待一段时间后再将用户重定向到另一个页面,但应用程序仍然崩溃。 事实证明,NSURLErrorDomain在Cordova中是良性的,问题出在我的代码中的其他地方。 Apparently, the crash didn't have anything to do with NSURLErrorDomain. I managed to avoid NSURLErrorDomain by waiting a c ...
-
据我所知,AFHTTPRequestOperationManager有一个AFSSLPinningModeNone的默认AFSecurityPolicy。 在我看来,这是两个电话之间的唯一区别。 As far as I can see, the AFHTTPRequestOperationManager has a default AFSecurityPolicy of AFSSLPinningModeNone. That appears to me to be the only difference be ...
-
出于某种原因,您的SDWebImage不会保留user-Agent 。 我在每次通话前手动强制它持续存在。 试试这个: NSString *userAgent = @""; userAgent = [NSString stringWithFormat:@"%@/%@ (%@; iOS %@; Scale/%0.2f)", [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBund ...