메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다. 문의사항은 gooper@gooper.com로 메일을 보내주세요.


----.git폴더를 삭제하고 다시 git에 추가하고 서버(bitbucket.org)의 gooperone계정에 반영하는 방법

1. 현재 상태 확인
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (dev)
$ git status
fatal: Not a git repository (or any of the parent directories): .git


2. .git폴더가 없으므로 새로 생성하여 초기화 해줌

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf
$ git init
Initialized empty Git repository in C:/dev/workspace/gsdaf/.git/


3. 원격저장소를 로컬과 연결함

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git remote add origin https://gooperone@bitbucket.org/gooperone/gsda.git


4. master에 push하려 하지만 오류발생함

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'https://gooperone@bitbucket.org/gooperone/gsda.git'


5. 파일목록 확인

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ ls
build.gradle  gsda-client/  gsda-common/  gsda-doc/  gsda-web/  LICENSE  pom.xml  README.md  src/


6. 현재 상태 확인

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        LICENSE
        README.md
        gsda-client/
        gsda-common/
        gsda-doc/
        gsda-web/
        pom.xml
        src/

nothing added to commit but untracked files present (use "git add" to track)


7. 현재 폴더 내용을 git에 등록함

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git add *
The following paths are ignored by one of your .gitignore files:
build.gradle
Use -f if you really want to add them.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/conf/ExceptionHelper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/kafka/avro/COL_ONEM2M.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/kafka/avro/COL_RDBMS.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSDeviceContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSLocationContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSPersonalContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/OneM2MContainerType.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/SurveyInfoDTO.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/UserInOutInfoDTO.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/onem2m/OneM2MSubscribeUriMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/AttendanceServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/PresenceServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/SurveyServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/UserInOutServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/model/ICBMSContextConditionModel.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/query/DeviceResource.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/resources/log4j.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/build_eclipse.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/configuration.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/quick-start.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-web/src/main/webapp/WEB-INF/config/action-servlet.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-web/src/main/webapp/WEB-INF/config/log4j.xml.
The file will have its original line endings in your working directory.


8. 다시 상태 확인

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   LICENSE
        new file:   README.md
        new file:   gsda-client/pom.xml
        new file:   gsda-client/src/main/java/com/gooper/icbms/sda/hbase/onem2m/AvroOneM2MDataToHBaseSubscribe.java
        .......
        new file:   gsda-client/src/test/java/com/gooper/icbms/sda/sda_client/AppTest.java
        new file:   gsda-common/pom.xml
        new file:   gsda-common/src/main/java/com/gooper/icbms/sda/comm/SchComm.java
        .....
        new file:   gsda-doc/build_eclipse.md

        new file:   gsda-web/pom.xml
        new file:   gsda-web/src/main/java/com/gooper/icbms/sda/itf/ci/controller/CiController.java
        ......
        new file:   src/main/webapp/WEB-INF/jsp/sample/boardList.jsp
        new file:   src/main/webapp/WEB-INF/web.xml
        new file:   src/main/webapp/index.jsp


9. 첫번재 커밋수행
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git commit -m "First Commit."
[master (root-commit) 8f1a2c9] First Commit.
 346 files changed, 38605 insertions(+)
 create mode 100644 LICENSE
 create mode 100644 README.md
 create mode 100644 gsda-client/pom.xml
 create mode 100644 gsda-client/src/main/java/com/gooper/icbms/sda/hbase/onem2m/AvroOneM2MDataToHBaseSubscribe.java
 ....
 create mode 100644 gsda-client/src/test/java/com/gooper/icbms/sda/sda_client/AppTest.java
 create mode 100644 gsda-common/pom.xml
 create mode 100644 gsda-common/src/main/java/com/gooper/icbms/sda/comm/SchComm.java
 ......
 create mode 100644 gsda-common/src/main/resources/mybatis-config.xml
 create mode 100644 gsda-doc/build_eclipse.md
 create mode 100644 gsda-web/src/main/java/com/gooper/icbms/sda/itf/ci/controller/CiController.java
 .....
 create mode 100644 pom.xml
 create mode 100644 src/main/java/com/gooper/icbms/sda/comm/common/THJobTest1.java
 ....
 create mode 100644 src/main/webapp/index.jsp


10. master 브랜치에 push수행

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git push -u origin master
Counting objects: 466, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (403/403), done.
Writing objects: 100% (466/466), 302.18 KiB | 0 bytes/s, done.
Total 466 (delta 157), reused 0 (delta 0)
To https://bitbucket.org/gooperone/gsda.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$

번호 제목 글쓴이 날짜 조회 수
479 Lagom에서 제공하는 Maven을 이용한 Hello프로젝트 자동생성 및 실행 총관리자 2018.01.19 81
478 lagom에서 제공하는 초기 생성기능을 이용하여 생성한 프로젝트의 소스 파악 총관리자 2018.01.16 111
477 spark stream처리할때 두개의 client프로그램이 동일한 checkpoint로 접근할때 발생하는 오류 내용 총관리자 2018.01.16 1115
476 shard3가 있는 서버에 문제가 있는 상태에서 solr query를 요청하는 경우 "no servers hosting shard: shard3" 오류가 발생하는 경우 조치사항 총관리자 2018.01.04 174
475 solr 데몬이 떠있는 동안 hadoop이 다운되는 경우 Index dir 'hdfs://mycluster/user/../core_node2/data/index/' of core 'gc_shard1_replica2' is already locked라논 오류가 발생하는데 이에 대한 조치사항 총관리자 2018.01.04 268
474 [Decommission]시 시간이 많이 걸리면서(수일) Decommission이 완료되지 않는 경우 조치 총관리자 2018.01.03 5294
473 [2.7.2] distribute-exclude.sh사용할때 ssh 포트변경에 따른 오류발생시 조치사항 총관리자 2018.01.02 89
472 hadoop cluster에 포함된 노드중에서 문제있는 decommission하는 방법및 절차 file 총관리자 2017.12.28 660
471 windows7에서 lagom의 hello world를 빌드하여 실행하는 경우의 로그(mvn lagom:runAll -Dscala.binary.version=2.11) 총관리자 2017.12.22 152
470 Lagom프레임웍에서 제공하는 HelloWorld 테스트를 수행시 [unknown-version]오류가 발생하면서 빌드가 되지 않는 경우 조치사항 총관리자 2017.12.22 56
469 [DBeaver 4.3.0]import/export시 "Client home is not specified for connection" 오류발생시 조치사항 총관리자 2017.12.21 753
468 전체 컨택스트 내용 file 총관리자 2017.12.19 66
467 [gson]mongodb의 api를 이용하여 데이타를 가져올때 "com.google.gson.stream.MalformedJsonException: Unterminated object at line..." 오류발생시 조치사항 총관리자 2017.12.11 4396
466 컴퓨터 무한 재부팅 원인및 조치방법 file 총관리자 2017.12.05 106
465 권한회수 및 권한부여 명령 몇가지 총관리자 2017.11.16 63
464 db를 통째로 새로운 이름의 db로 복사하는 방법/절차 총관리자 2017.11.14 428
463 oneM2M Specification(Draft Release 3, 2, 1), Draft Technical Reports 총관리자 2017.10.25 81
462 Windows7 64bit 환경에서 ElasticSearch 5.6.3설치하기 총관리자 2017.10.13 63
461 windows 혹은 mac에서 docker설치하기 위한 파일 총관리자 2017.10.13 42
460 lagom-windows용 build.sbt파일 내용 총관리자 2017.10.12 60

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로