小编San*_*sth的帖子

在系统环境的路径变量中设置JAVA后,是否需要重新启动系统?

我做了以下步骤,但java似乎不适合我,我是否需要重新启动我的系统,如果是,为什么?

1. Right click My Computer->Advence Option->Environment Varibles->System Variables 
    2. variable : Path->Edit
    3. Copy your jdk bin directory i.e.C:\Program Files\Java\jdk1.7.0_51\bin
    4. Paste it after putting a semi-colon(;) in value section 
Run Code Online (Sandbox Code Playgroud)

我在cmd中运行java时遇到错误

C:\Users\User>java -version
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
Run Code Online (Sandbox Code Playgroud)

java java-home

16
推荐指数
2
解决办法
5万
查看次数

句柄在编译模板时解析错误

我在使用Windows CMD编译车把模板时遇到错误.我的车把客户端和服务器都是@ 1.3.0请帮我识别我哪里出错了

dashboard.handlebars代码 -

<ul class="small-block-grid-2 medium-block-grid-2 large-block-grid-2" style="text-align:center;">
    <li>

        <div class="chart" data-percent="{{#getPercent reward_point.point_achived reward_point.point_available}}">
            <span>{{#getPercent reward_point.point_achived reward_point.point_available}}%</span>
            <span style="font-size:.5em;display:inline-block;">{{reward_point.point_achived}}</span>
            <span style="font-size:.5em; color:#005390; display:inline-block;">/{{reward_point.point_available}} RP</span>
        </div>
    </li>
    <li>

        <div class="chart" data-percent="{{#getPercent calorie_budget.point_achived calorie_budget.point_available}}">
            <span>{{#getPercent calorie_budget.point_achived calorie_budget.point_available}}</span>
            <span style="font-size:.5em;display:inline-block;">{{calorie_budget.point_achived}}</span>
            <span style="font-size:.5em; color:#005390; display:inline-block;">/{{calorie_budget.point_available}} cal</span>
        </div>
    </li>
    <li>

        <div class="chart" data-percent="{{#getPercent 30_day_challenge.point_achived 30_day_challenge.point_available}}">
            <span>{{#getPercent 30_day_challenge.point_achived 30_day_challenge.point_available}}</span>
            <span style="font-size:.5em;display:inline-block;">{{30_day_challenge.point_achived}}</span>
            <span style="font-size:.5em; color:#005390; display:inline-block;">/{{30_day_challenge.point_available}} complete</span>
        </div>
    </li>
    <li>

        <div class="chart" data-percent="{{#getPercent physical_activity.point_achived physical_activity.point_available}}">
            <span>{{#getPercent physical_activity.point_achived physical_activity.point_available}}</span>
            <span style="font-size:.5em;display:inline-block;">{{physical_activity.point_achived}}</span>
            <span style="font-size:.5em; color:#005390; display:inline-block;">/{{physical_activity.point_available}} min</span> …
Run Code Online (Sandbox Code Playgroud)

handlebars.js

9
推荐指数
1
解决办法
1万
查看次数

仅使用struts 2使用ajax和刷新列表从列表中删除用户

我的清单如下: -

UserName   action
=================
abcd       delete
1234       delete
Run Code Online (Sandbox Code Playgroud)

我的jsp代码如下: -

<table>
    <tr>
        <th>UserName</th>
        <th>Action</th>
    </tr>
    <s:iterator value="list">
        <tr>
            <td><s:property value="name" /></td>
            <td><a href="<s:url action='deleteUser'/>">delete</a></td>
        </tr>
    </s:iterator>
</table>
Run Code Online (Sandbox Code Playgroud)

如何使用从列表中删除用户的ajax调用操作并刷新列表

struts2 struts2-jquery

4
推荐指数
1
解决办法
3379
查看次数

无法运行hadoop wordcount示例?

我在vmware中的ubuntu 12.04上的单节点环境中运行hadoop wordcount示例.我运行这样的例子: -

hadoop@master:~/hadoop$ hadoop jar hadoop-examples-1.0.4.jar wordcount    
/home/hadoop/gutenberg/ /home/hadoop/gutenberg-output
Run Code Online (Sandbox Code Playgroud)

我在下面的位置输入文件:

/home/hadoop/gutenberg
Run Code Online (Sandbox Code Playgroud)

和输出文件的位置是:

    /home/hadoop/gutenberg-output
Run Code Online (Sandbox Code Playgroud)

当我运行wordcount程序时,我得到以下错误: -

 13/04/18 06:02:10 INFO mapred.JobClient: Cleaning up the staging area     
hdfs://localhost:54310/home/hadoop/tmp/mapred/staging/hadoop/.staging/job_201304180554_0001       
13/04/18 06:02:10 ERROR security.UserGroupInformation: PriviledgedActionException       
as:hadoop cause:org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory 
/home/hadoop/gutenberg-output already exists 
org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory 
/home/hadoop/gutenberg-output already exists at 

org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.j 
ava:137) at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:887) at 
org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850) at 
java.security.AccessController.doPrivileged(Native Method) at 
javax.security.auth.Subject.doAs(Subject.java:416) at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121) at   
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:850) at  
org.apache.hadoop.mapreduce.Job.submit(Job.java:500) at  
org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:530) at 
org.apache.hadoop.examples.WordCount.main(WordCount.java:67) 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:616) at 
org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) 
at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) …
Run Code Online (Sandbox Code Playgroud)

hadoop mapreduce

4
推荐指数
1
解决办法
1万
查看次数

"对象|| {}"在javascript中的含义是什么?

我在javascript应用程序中找到了以下代码行.

var auth = parent.auth = parent.auth || {};
Run Code Online (Sandbox Code Playgroud)

我知道现有的Object父对象是用auth Object扩展的,但我不明白parent.auth || {}这里做了什么.

javascript jquery javascript-objects

2
推荐指数
1
解决办法
3103
查看次数

无法创建目录/home/hadoop/.ssh:权限被拒绝?

我在Ubuntu操作系统上配置hadoop.我需要创建RSA密钥对以允许hadoop与其节点进行交互,因此我运行此命令:

hadoop@ubuntu:~$ ssh-keygen -t rsa -P ""
Run Code Online (Sandbox Code Playgroud)

然后我明白了:

Generating public/private rsa key pair.
Enter file in which to save the key (/home/hadoop/.ssh/id_rsa):
Could not create directory '/home/hadoop/.ssh': permission denied.
Enter passphrase (empty for no passphrase ):
Enter same passphrase again:
open /home/hadoop/.ssh/id_rsa failed: No such file or directory.
Saving the key failed: /home/hadoop/.ssh/id_rsa.
Run Code Online (Sandbox Code Playgroud)

linux hadoop ubuntu-12.04

1
推荐指数
1
解决办法
2万
查看次数