小编use*_*379的帖子

将传感器数据从arduino直接推送到apache kafka服务器.

我是物联网的新手.我已将温度数据推送到蚊子服务器并成功消耗了所有数据.现在我想将数据从arduino推送到kafka服务器并从kafka中消费.arduino有没有kafka库?什么架构适合使用apache kafka扩展mqqt?

谢谢

arduino apache-kafka iot

8
推荐指数
1
解决办法
4785
查看次数

使用twitter4j-4.0.1在Android中集成Twitter

我尝试在Twitter中集成twitter我已经按照以下链接http://www.androidhive.info/2012/09/android-twitter-oauth-connect-tutorial/进行了教程

但是我在这些行的loginwithTwitter函数中遇到异常

ConfigurationBuilder builder = new ConfigurationBuilder();
        builder.setOAuthConsumerKey(TWITTER_CONSUMER_KEY);
        builder.setOAuthConsumerSecret(TWITTER_CONSUMER_SECRET);
        Configuration configuration = builder.build();
        TwitterFactory factory = new TwitterFactory(configuration);
        twitter = factory.getInstance();
        try {
            requestToken = twitter.getOAuthRequestToken(TWITTER_CALLBACK_URL);
            this.startActivity(new Intent(Intent.ACTION_VIEW,
            Uri.parse(requestToken.getAuthenticationURL())));

        } catch (TwitterException e) {
            e.printStackTrace();
            Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();
        }
Run Code Online (Sandbox Code Playgroud)

我将e.getMessage()视为null,并在此行发生异常

requestToken = twitter.getOAuthRequestToken(TWITTER_CALLBACK_URL);
Run Code Online (Sandbox Code Playgroud)

请帮我解决这个问题.我还搜索了互联网和其他类似的问题在stackoverflow上如Android twitter登录不起作用Twitter登录身份验证在Android? 亲切地帮助我,我正在使用twitter4j-4.0.1

twitter android oauth

3
推荐指数
1
解决办法
5746
查看次数

远程连接apache spark和apache hive.

我可以从安装了apache spark的同一群集中的hive服务器加载数据.但是如何从远程配置单元服务器将数据加载到数据帧中.蜂巢jdbc连接器是唯一的选择吗?

任何建议我怎么能这样做?

hive jdbc apache-spark apache-spark-sql

3
推荐指数
1
解决办法
5196
查看次数